Back to PrivateFiles Support

Hessel
Hessel

is simply managed in backend settings, you are the best =)

Hi, when I upload an excel sheet the file is not recognized. I changed FileTypes in the model

secondaryTabs: fields: privatefile: label: 'kurtjensen.privatefiles::lang.download-model.privatefile' type: fileupload fileTypes: 'pdf,txt,doc,docx,xls,xlxs'

Last updated

KurtJensen
KurtJensen
  • Are you uploading on FRONT end form or BACKEND form?
  • Did you set "Allowed File Types" in Settings for "Private Files"?
    • This should be a comma separated list od extensions like "_txt,doc,docx,xls".

I uploaded a spreadsheet and downloaded it without any issue using the FRONT end form. The file extension was "xlsx". I thought that I recently saw an October CMS config setting for file types but can not recall at the moment. I will search for it and post a link if I find more.

KurtJensen
KurtJensen

This is what I was thinking of but I believe it is only for the MediaManager:

https://octobercms.com/forum/post/setting-allowed-filetypes-for-fileupload

Here is the relevant section in October source code that lists the defaults discussed in the above post:

https://github.com/octobercms/library/blob/develop/src/Filesystem/Definitions.php#L93

1-3 of 3