i’ve been trying to follow the video on fileupload with the older dmxzone file upload extension but having hard time following it. Is there any updated documentation on how to do that within Wappler?
Obviously learning alot and feel this is a new great tool but I recognize the documentation is just evolving and there is so much there which is exciting to learn.
I needn’t of blurred the further steps. If you are interested and after you have been successful with the above I am willing to explain them to you. They are carrying out re-sizing of the uploaded image to a thumbnail and storing it’s location (same principle as above with using the Path) within the DB alongside the original image.
thanks. I got it to work. Question: I have a form which updates a bunch of fields similar to the university detail page. One of the fields is a filename for an image. I can upload the image separately. Is it possible to add a file upload field on the update form which already contains the filename filed and image so that when I change the file upload field, it uploads the file and updates the value of the filename field on the form so when the database update step executes, the new filename is placed in the database. Currently, I tried a change dynamic event on the fileupload field and tried to set value of the form filename field to the value of the upload file name valute. That doesn’t change anything. Is there a better way to do this or am I trying to do too much on the same form?
Hi Rick,
This should be done in the update record step. Use the condition field, to tell the update step to insert a value only when a file is selected in the file field:
thanks that worked. I had to guess at how to code the condition in the server connect but got it to work. Is it correct that the condition exists is simply having the field name as the condition? I originally thought of " field is not null" or field is null or field= NULL. as I couldn’t find any documentation on that.
Really like Wappler though. There is obviously so much power everywhere.
It's as simple as selecting the input from the data picker. That means - if the input has a value the condition is true and the insert for this database field will be executed, otherwise it's false and no insert will be executed.