Wappler Version : 5.7.0
Operating System : Ubuntu
Server Model: Node/Docker
Database Type:
Hosting Type: Digital Ocean
Expected behavior
What do you think should happen?
Uploads that were working previously should still work. Simple form that has a Dropzone, has always worked until recent update. Form submits images to S3 for repeat upload of form contents.
Actual behavior
Receive an error relating to uploads.js.
As this is a live site could not hang around restoring files from backup so will recreate the error locally and post the error details.
How to reproduce
Open page with form with upload (Dropzone).
Submit form.
Upload halts with error in lib/modules/upload.js
We replaced uploads.js with an older version and all is fine.
We have rolled back right to 5.3.2.1 and reverted to backups of our Projects as just too much breaking from routing (internal pages, fixed then broke again) to uploads (uploads.js), and dynamic selects lists. Became such a mess was spending too long chasing breaking changes. We can not afford the downtime.
Hi Teodor we rolled right back as just canât have these issues happening. It was more important to have the application online and working rather than broken and dozens of support messages from users flooding our inbox, hence my quick bug report. It is the most recent changes to uploads.js that have broken the script. Iâll try and recreate it locally later on this evening for the exact error message for you to investigate.
I will update again later this evening and force the error and document it for you. You could also replicate it if you need to. Simple form with Dropzone pushing repeat of the upload to AWS S3 Bucket.
If you are in the beta channel then you can get breaking changes, we are currently busy with a major update for all components and in the current beta state they can cause several errors. If you are working on a project make sure you are using the stable channel for the extensions.
{âstatusâ:â500â,âmessageâ:âCannot read properties of undefined (reading âcreateâ)â,âstackâ:âTypeError: Cannot read properties of undefined (reading âcreateâ)\n at processFields (/opt/node_app/lib/modules/upload.js:81:77)\n at processFields (/opt/node_app/lib/modules/upload.js:61:27)\n at App.upload (/opt/node_app/lib/modules/upload.js:51:19)\n at App._exec (/opt/node_app/lib/core/app.js:608:57)\n at App._exec (/opt/node_app/lib/core/app.js:575:28)\n at async App.exec (/opt/node_app/lib/core/app.js:544:9)\n at async App.condition (/opt/node_app/lib/modules/core.js:109:17)\n at async App._exec (/opt/node_app/lib/core/app.js:608:30)\n at async App._exec (/opt/node_app/lib/core/app.js:575:17)\n at async App.exec (/opt/node_app/lib/core/app.js:544:9)â}
omg⌠I do really need hollidaysâŚ
I spend the afternoon looking for the repo where I should paste this upload.js file in my mobile app while this morning I updated my server side project (and already fixed the bug)âŚ
voila voilaâŚ
thanks folks