0

I have created a profile and saved it in the database with the company picture of the peson added . My question here how can i clone this profile to create another one . for the <input type="text"> it's so easy but i have to clone also the company picture . how can i set to the <input type="file"> the path of the image on the server .

user2784013
  • 253
  • 1
  • 5
  • 14
  • possible duplicate of [How to set a value to a file input in HTML?](http://stackoverflow.com/questions/1696877/how-to-set-a-value-to-a-file-input-in-html) – Ruan Mendes Feb 01 '14 at 08:28

1 Answers1

1

You cannot programatically set the value of a text field , that would be a risk because you could upload any file from the client. Please see How to set a value to a file input in HTML?

Community
  • 1
  • 1
Ruan Mendes
  • 90,375
  • 31
  • 153
  • 217