File upload extension issue (SPA)

======== TEMPLATE BUG FORM ========

Wappler Version : Wappler 3.3.3
Operating System : Windows 10 pro

Expected behavior

File uploading step should work just fine.

Actual behavior

The file extension is incorrect.
If I try to upload a jpg file, this file extension is changed to “jg” and if it’s a png file, the extension saved is “ng”.
Screen Shot 2020-09-30 at 11.31.02

How to reproduce

Add a file upload step in your server action and try it in your browser.

I have no custom extension settings as you can see here, just {guid}{ext}, and no additional step for this image (no resige or other):
Screen Shot 2020-09-30 at 11.27.55

What if you leave the template field empty? Is the extension still cut off?
What server model are you using?

I just tried it, and same problem.

My server model is NodeJS. :slight_smile:

Seems there was a small bug with the Strip All Non ASCII option. Here an update, place file in lib/modules.

upload.zip (1.2 KB)

1 Like

Yep, it worked! Thank you :smiley:

Fixed in Wappler 3.3.5

1 Like