Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload different file types as attachments #128

Open
1 task
paul6294 opened this issue Jun 7, 2024 · 3 comments
Open
1 task

Upload different file types as attachments #128

paul6294 opened this issue Jun 7, 2024 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@paul6294
Copy link

paul6294 commented Jun 7, 2024

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)

image

Extra fields

  • I'd like to work on this feature
@paul6294 paul6294 added the enhancement New feature or request label Jun 7, 2024
@ffiesta
Copy link
Contributor

ffiesta commented Jun 7, 2024

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: #112

I think in future someone will make a menu to do this.

@Zavy86
Copy link
Owner

Zavy86 commented Aug 22, 2024

what other files do you think should be included, that we can eventually set them

@Zavy86 Zavy86 added this to the Release 1.1 milestone Aug 22, 2024
@ffiesta
Copy link
Contributor

ffiesta commented Aug 22, 2024

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. 😄

  1. create a menu to add/edit/select extensions and save to config.inc.php file;
  2. Change php files to load this extensions;
  3. Add custom file with mimetype, to be load by php files.

Sorry for the big answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants