Hi,
I am still an alpha newbie here. What I am trying to do is simply upload an image file to a directory on my server and capture a filename to include in a sql table. In v11 I could do this just fine in the Grid component, however at this stage I really want to be able to do this directly in a UX component.
I have the Image control and the button with the onclick action javascript for Image Upload - it is all exactly the same. Only difference is the Image control is now C instead of I (can't seem to find a way to choose Image Reference Field in the UX component - is this correct?).
I am not scaling the image. I am leaving the default allowed image extensions and max image size the same. I have tried putting both an absolute path and a relative path in the Upload Folder field. I have tried both using a transformation expression and leaving that field blank. No matter what I do, or what type of image I upload and submit in the UX, I always get "images/null_1x1.png.a5image" as the data for the Image field and nothing gets added to the directory in the server. Does anyone have any ideas why this would be happening?
I've watched the videos for both data binding and non data binding image upload for the UX component but neither show how to upload the actual image file to the server - only working with binary data. Can anyone summarize what the key differences are? If I were to do data binding with a binary field, would a browser be able to display that image after retrieving the binary data from the table?
Thank you very much for your help.
Carl G
I am still an alpha newbie here. What I am trying to do is simply upload an image file to a directory on my server and capture a filename to include in a sql table. In v11 I could do this just fine in the Grid component, however at this stage I really want to be able to do this directly in a UX component.
I have the Image control and the button with the onclick action javascript for Image Upload - it is all exactly the same. Only difference is the Image control is now C instead of I (can't seem to find a way to choose Image Reference Field in the UX component - is this correct?).
I am not scaling the image. I am leaving the default allowed image extensions and max image size the same. I have tried putting both an absolute path and a relative path in the Upload Folder field. I have tried both using a transformation expression and leaving that field blank. No matter what I do, or what type of image I upload and submit in the UX, I always get "images/null_1x1.png.a5image" as the data for the Image field and nothing gets added to the directory in the server. Does anyone have any ideas why this would be happening?
I've watched the videos for both data binding and non data binding image upload for the UX component but neither show how to upload the actual image file to the server - only working with binary data. Can anyone summarize what the key differences are? If I were to do data binding with a binary field, would a browser be able to display that image after retrieving the binary data from the table?
Thank you very much for your help.
Carl G
Comment