Welcome Guest, Not a member yet? Register   Sign In
File upload
#2

[eluser]LuckyFella73[/eluser]
For your upload works the first time you add a file to a record
that routine seems to work. Therefore the issue might be to find
at the point you try to delete the old file. Since you didn't
set the fileupload config "overwrite" I assume the filename you
get in order to delete might be empty and that way the whole folder
content is deleted.
I would suggest to echo out (or use die() ) to get sure the filename
of the file to be deleted is correct.

PS: please use the CODE brackets the next time you post your code.
It makes reading much more comfortable. Many people here skip to
read posts if there are not formatted that way. ;-)


Messages In This Thread
File upload - by El Forum - 11-06-2012, 12:41 AM
File upload - by El Forum - 11-06-2012, 02:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB