Hi,
I have a routine which reads a file using type='file'. I would like to be able to update the file and save it in the same location it came from, which would be in the C:\ directory. However, I cannot see how to get hold of the path associated with my file. Can anyone help with this?
Thanks, Dave.
can you plz explain the problem more clearly..........with some snipet that you applied
nil_gh_80
Junior Poster in Training
64 posts since Aug 2007
Reputation Points: 8
Solved Threads: 2
Hi,
I have a routine which reads a file using type='file'. I would like to be able to update the file and save it in the same location it came from, which would be in the C:\ directory. However, I cannot see how to get hold of the path associated with my file. Can anyone help with this?
Thanks, Dave.
i think one solution for this is:
you just get the path you have to update in database and also in folder....
just use unlink to delete the file in that folder...
then simply use update query to update the path and use your regular code to insert the file in your folder...
hope this will helps you...
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162