Upload class - save file twice
Posted: Mon Jul 16, 2012 11:30 am
Hi,
I am using your upload class, I want to save the uploaded image twice.
1. Original size
2. Rezied size
However, when I save the file once, it will get deleted from the tmp, so it is not possible anymore to save it also as resized.
Original save: $upload->save_to('./uploads/' . $mdc . $upload->name);
Resized save: $upload->save_image_resized('./uploads/r_' . $mdc . $upload->name, 400);
The resized save will fail because the tmp file has been removed while saving the original.
Can you help with this?
I am using your upload class, I want to save the uploaded image twice.
1. Original size
2. Rezied size
However, when I save the file once, it will get deleted from the tmp, so it is not possible anymore to save it also as resized.
Original save: $upload->save_to('./uploads/' . $mdc . $upload->name);
Resized save: $upload->save_image_resized('./uploads/r_' . $mdc . $upload->name, 400);
The resized save will fail because the tmp file has been removed while saving the original.
Can you help with this?