upload images
I am trying to create a simple form to upload an image. How do I accomplish this? File Manager, File? There is no image upload field type.
I am trying to create a simple form to upload an image. How do I accomplish this? File Manager, File? There is no image upload field type.
A field type "file" will upload a file... it is a standard html element not something from webassist.
The WebAssist Server Behavior for uploading a file will allow you to take the uploaded file, verify it is an image, and resize it and save it to a directory of your choice.
I got it to upload an image, but it doesn't save the file name to the DB for later use. is that possible?
Yes. There is a reference to the "Server File Name" in the bindings you can use to save the image name in the database.
Ok, the image name is now being saved to the database, thanks for that. However, if i update the entry, I have to reupload the image file again or it deletes the file name in the database.
Also, I was reading the help section for the Upload Wizard and noticed that it says nothing about what the "Default file" field does. So what does the "Default file" field do?
The default file is the value to use when no file has been uploaded. If you set it to the existing column in the database it will keep that value if someone submits the form without specifying a new value.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.