Upload different file types as attachments
Describe the feature
I know that this is possible, I just cannot locate where to add the file type extensions that will allow them as attachments.
Currently, uploading attachments is restricted to a few file types (pdf, xls ...) please could someone point me to where to make changes so that I may upload others (such as jpg).
Thank you!
Is your feature request related to a problem? (optional)
No response
Screenshots (optional)
Extra fields
- [ ] I'd like to work on this feature
Hi @paul6294
If you need to upload other file types you need to edit:
/submit.php - Line 488 with file type and Line 495 with mimetype
/template.inc.php - Line 249 with file type
/classes/Document.class.php - Line 205 with the type.
See: https://github.com/Zavy86/WikiDocs/issues/112
I think in future someone will make a menu to do this.
what other files do you think should be included, that we can eventually set them
Hi @Zavy86,
In my opinion wikidocs can have pre-configured upload files types like it has today, but ... have a menu were we can add more or can select another types.
Like i said in another post i use wiki docs as my personal libray (software, food recipes, snipcode,....) and in case of software folder i have (.iso, .txt, .exe, .md, .pdf, .html, .rar, .... ) multiple files and I think today wikidocs it's some how limited.
As I have little knowledge in PHP programming and as I have some specific needs, currently, because it's more simple edit php files to acomodate my needs!
But because I think this change it's better to all community, I open this issue, however I will try to make this in future. 😄
- create a menu to add/edit/select extensions and save to config.inc.php file;
- Change php files to load this extensions;
- Add custom file with mimetype, to be load by php files.
Sorry for the big answer!