Copy instead of move for local files

See all posts Reply

Copy instead of move for local files new!
by sakiss, 12 years, 10 months ago
Hi

I have used your class for creating new images in various folders.

What i am noticing is that the initial image is deleted (moved).
new upload($initImage)

Could this be avoided holding the initial instance?

In other words can the image be copied instead of moved?Reply
Re: Copy instead of move for local files new!
by colin, 12 years, 10 months ago
Do not call clean() at the end of your code, and it should leave the original image in place.Reply
Re: Copy instead of move for local files new!
by sakiss, 12 years, 10 months ago
It works. Thank you

I have made a small donation because i like your supportReply
Re: Copy instead of move for local files new!
by colin, 12 years, 10 months ago
Thank you, much appreciated.

I will send you an invoice shortly.Reply