nabo Posted February 11, 2020 Share Posted February 11, 2020 Hi is there a way to avoid file extensions check? I would like to upload any kind of files. Link to comment Share on other sites More sharing options...
dragan Posted February 11, 2020 Share Posted February 11, 2020 @nabo What's your use-case? From a security point of view it's not a good idea to allow everything. Surely you have an idea what kind of file-types will be used? I found another forum thread where basically the same question was asked, and the gist of it was: No, you can't. Leaving the allowed extension config list empty makes it unusable, and just entering a wildcard * won't work either. @ryan takes security matters very seriously, and personally, I wouldn't want to have such a "everything goes" option built-in the core, too. If you have to, for some reason, import data from another system, and create / populate fields via API (batch actions), you can temporarily allow each file extension that comes your way, and then switch back to a "normal" default set after save. But I guess you were asking about using the GUI options. 5 Link to comment Share on other sites More sharing options...
sgt.blikey Posted September 23, 2020 Share Posted September 23, 2020 It would be helpful to have a bit more flexibility on this field type. What about, instead of any extension, an option for no extension? Use case: storing configuration files in a knowledgebase system. It is a little inconvenient to be required to rename a file or add an extension in order to upload, and once more when downloading. I appreciate it isn't a major headache to have to do that, but it all goes towards usability. Link to comment Share on other sites More sharing options...
antpre Posted January 7, 2021 Share Posted January 7, 2021 Hi, just bump into an issue and the impossibility to configure an option for no extension (via the admin or the wireUpload API) would have been handy. On Android if you upload a audio file, the file is uploaded without extention (that's not a bug but an inteded thing saw a few stackoverflow threads on that). As a result I am unable to offer the possibility to upload mp3 files from a android device without some extra js code. In my use case only one admin would have had access to this uploading functionality. As a result no possibility to upload an audio file from the processwire admin if you are trying to do it from an android device. Therefore yes an option would have been nice. But I do understand the security related issues. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now