Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • i think that will only modify the preview image before upload, the image which is uploaded is still test.png. I think there is something need to be done with <input type="hidden" name="gform_uploaded_files" id="gform_uploaded_files_1" value="{&quot;input_14&quot;:[{&quot;temp_filename&quot;:&quot;ff301078_input_14_o_1ad7pjak2psd8g4fhpi71ajia.jpg&quot;,&quot;uploaded_filename&quot;:&quot;test.jpg&quot;}]}"> Commented Mar 7, 2016 at 6:00
  • I dont understand. Is it that you let the user upload any image but show only this image always in the preview or there is no option for the user to upload a image at all but you need to save this image against his record?? Commented Mar 7, 2016 at 6:03
  • Thanks. there is no option for the user to upload a image at all. but I need to save this image against his record?? Commented Mar 7, 2016 at 6:04
  • Then there is no need for you to upload at all, You will show this preview all the time, then in your server you'll have to directly access the image from its path and use it the way you want. I dont think you have to send it back from your browser back to the server, Its not necessary Commented Mar 7, 2016 at 6:07