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 .
Asked
Active
Viewed 5,017 times
0

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 Answers
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
-
Can i even set a relative path of the file or ,loag it from an
thtml tag . – user2784013 Feb 01 '14 at 10:54