Database attach file formats

Database attach file formats

by Rafael Leonardo -
Number of replies: 5
Hey all, im trying to add PDF, DOC, XLS and some other files as attach to Database entries but it seems that i can only upload Images in this. However i can upload other formats in other activities through my Moodle.

Is this the way it works or is it possible to add more file formats to database?


Thanks in advance


Cheers


Average of ratings: -
In reply to Rafael Leonardo

Re: Database attach file formats

by William Lu -
Picture of Particularly helpful Moodlers

You are using the [Picture] field.

The [File] filed is for any file formats.


In reply to William Lu

Re: Database attach file formats

by Sarah Dussault -

Good morning,

From my Moodle database and your answer it looks like a database can only have ONE file format. Is that correct? Is there a way to add more than one file type to a database? 

Thank you,

In reply to Sarah Dussault

Re: Database attach file formats

by William Lu -
Picture of Particularly helpful Moodlers

It is not correct.

You can add any file, no matter what kind of format it is.


In reply to William Lu

Re: Database attach file formats

by Sarah Dussault -

Hello William.

Thank you for your prompt response. I have a database it is only letting me add images. Maybe my question is wrong can you use only one preset in a database? 

Thank you.

In reply to Sarah Dussault

Re: Database attach file formats

by William Lu -
Picture of Particularly helpful Moodlers
By default, the "Picture" and "file" fields allow both the teacher's role and the student's role to upload. Unless someone changed the permission either on the database module, or in the course level, or in the site level. You'd better have a check.

"Preset' is for quick import a database design, similar to the backup/restore. After you have imported a "preset", it has no meaning anymore. You can edit (Create new fields) in anyway you want to.