Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
#1 Posted : Saturday, March 20, 2010 4:10:49 AM(UTC)

Rank: Member

Groups: Member
Joined: 3/16/2008(UTC)
Posts: 12

I removed this question from another post that included 2 questions.

It's seems like a hot topic but I never reponded to your question for more details.

My clients will only be uploading one image at a time.

By default a new Descriptions.xml is created newly each time someone uploads an image

but the old image that was replaced by the new upload remains.

Is there anyway to delete the old image file automatically?

Please note that I understand that the image uploader is setup this way by default but

the problem comes in when I have mulitple .xml files and do not wish to delete all of the images

that are in this folder.


Client upload image called IMG_123.jpg. An xml file is created called myhouse.xml.

Later he uploads another image IMG_456.jpg and a new myhouse.xml file is create.

Problem lies in deleting the old file, IMG_123.jpg.

If you could tell me how to disable the getSafeFileName

then force the image to be named myhouse.jpg

I could live with that.

I have no experience with server-side parse POST if that is part of the solution.

Point me a little.



#2 Posted : Sunday, March 21, 2010 8:44:51 PM(UTC)

Rank: Advanced Member

Groups: Member
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hi Phil,

Actually you can give any name for uploaded file. For example (upload.php):

if (!$_FILES["SourceFile_1"]['size'])
move_uploaded_file($_FILES["SourceFile_1"]['tmp_name'], $absGalleryPath . "/" . "myhouse.jpg");

//Get the thumbnail and save it to disk.
if (!$_FILES["Thumbnail1_1"]['size'])
move_uploaded_file($_FILES["Thumbnail1_1"]['tmp_name'], $absGalleryPath . "/Thumbnails/" . "myhouseThumb.jpg");

It is modified BasicDemo sample upload.php script.

Edited by user Sunday, March 21, 2010 8:45:54 PM(UTC)  | Reason: Not specified

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.