Hi I have 5 photo fields (varchar) in my table. I use file field in my form . When I edit records, Let's say that in my record I have 2 photos, and other 3 are empty. When I make an edit, if I enter third photo and leave first two fields blank, previous 2 photos are deleted. How can I prevent this to be happen? Regards, Zoreli
You can't. If you send the form with the first to files, you need to process these files first (check upload, move to cache dir) and then if a user wants to add another file you can read the cache dir for files and give new upload options. the file value cannot be changed in anyway..