• Hi,

    I’ve been using Smart Forms for a while now, but I ran into the issue that some uploaded files are filetypes/extensions that I dont want, e.g. zip files, exe files etc.

    Would it be possible to either add this feature to the plugin? Just a comma-separated list of file-extensions that you would allow? Or is there a way to do this with a multi-file upload form, with the JavaScript feature?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    Thanks for the feedback, it will be added =).

    Regards!

    Thread Starter Kenneth – Systemedz

    (@systemedz)

    Hi,

    Great to see that this feature was implemented in the latest update to the plugin. ??

    Unfortunately, there seems to be a bug in the validation of the file extensions.
    Per default, you’ve set it to be *.*, as a wildcard I guess, to allow all file types – which is great. But unfortunately, it seems like the code (I looked through the plugin-code), that splits the String of file-extensions into an array, is looking for a comma to split it, which there isn’t (per default).

    So this is resulting in an alert/error (“Invalid File Type”).

    Changing the allowed file extensions to “*.*,” seems to solve the problem for me. So… The split functionality doesn’t seem to take into account that there might be no comma. ?? I’m not a typescript expert, but since I could solve the problem by adding a comma in the Allowed Fileextensions through the form builder, it seems to be related to that.

    Hopefully it’s an easy fix for you!

    But thanks for adding the feature! It’s gonna help us out a lot! ??

    Best regards,
    Kenneth

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File Uploader – Allowed File extensions’ is closed to new replies.