Gossamer Forum
Home : Products : Gossamer Links : Discussions :

image upload to two dir

Quote Reply
image upload to two dir
 I am adming a new field for uploading images in linsql.

by default. linksql will only save image in one dir. my question

is how could i save image in another dir as a backup.

so the image in dir1 will not be manipulated. i could retouch

images in dir2 and copy it back to dir1 or other new dir.



would this be a hard code modification ?

Thanks in advance.
Post deleted by courierb In reply to
Quote Reply
Re: [courierb] image upload to two dir In reply to
i wonder if any one here could point me which section

is responsible for generating uploaded image name.



i stoped at creator.pm and file.pm as i am not sure

which code is actually generating uploaded image name







Thanks
Quote Reply
Re: [courierb] image upload to two dir In reply to
the question, i think should be

how to use cgi.pm to upload one source file to two directory.
Quote Reply
Re: [courierb] image upload to two dir In reply to
You have to find the right place in script where the file is saved then you use a systemcall to copy. Have done this somewhere, but im sorry not to have the time to find it now.
Quote Reply
Re: [Robert] image upload to two dir In reply to
How do you use systemcall to copy the contents of one field into another?
Quote Reply
Re: [Abusaki] image upload to two dir In reply to
I think he's saying that you issue an operating system command to copy the file.

There are better, more reliable ways to handle this sort of issue if you define the problem.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.