Welcome Guest Search | Active Topics | Members

Major Problems With Image Loader Deleting Files Options
Steve Greenstein
Posted: Thursday, October 13, 2005 3:15:13 PM
Rank: Member
Groups: Member

Joined: 10/13/2005
Posts: 2
Points: 0
I just downloaded Image Uploader to evaluate for use in a web site I've been contracted to build. I noticed earlier today that when running the demo files, the program would give me an error message on uploading using the ASP.NET demo files. I was amazed to see that just afterwards, all my files in the ImageUploader folder were gone!

This afternoon, I sat down and read the chm file and carefully went through the instructions to set up all the uploader files, putting them into the correct directories. I put the main files (default.aspx) into my web site's main folder. The uploader again gave me an error message when testing locally (XP Pro and IIS) on my development computer. I was horrified to see that all my last 2 weeks worth of work on this site (about 22 files) had been erased by Image Uploader.

What gives? This program is dangerous!
Fedor
Posted: Thursday, October 13, 2005 9:46:46 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,254
Points: -345
Location: WA, US
Hello Steve,

Quote:
Steve Greenstein (10/13/2005)
I just downloaded Image Uploader to evaluate for use in a web site I've been contracted to build. I noticed earlier today that when running the demo files, the program would give me an error message on uploading using the ASP.NET demo files. I was amazed to see that just afterwards, all my files in the ImageUploader folder were gone!

What gives? This program is dangerous!


I am sorry for troubles, but let me describe why it happened. Image Uploader is just client-side control. It can work with with different server platforms (ASP, ASP.NET, PHP, JSP and so on). For ASP.NET we deliver just sample scripts, which are not part of Image Uploader and not intended for production.

In Upload.aspx there is variable which specifies the path for storing uploaded files:

Code:
    'Don't forget to add slash at the end of the path
    Private strGalleryPath = "../Gallery/"


During upload ASP.NET script delete all files in that folder, and then save all files there. It seems that you have modified your strGalleryPath variable, so that it maps to the folder with your ASP.NET files. That's why you had this problem.

Best regards,
Fedor Skvortsov
Steve Greenstein
Posted: Friday, October 14, 2005 8:07:04 AM
Rank: Member
Groups: Member

Joined: 10/13/2005
Posts: 2
Points: 0


>In Upload.aspx there is variable which specifies the path for storing uploaded files:
>'Don't forget to add slash at the end of the path Private strGalleryPath = "../Gallery/"
>During upload ASP.NET script delete all files in that folder, and then save all files there. It
>seems that you have modified your strGalleryPath variable, so that it maps to the folder
>wth your ASP.NET files. That's why you had this problem.

Many thanks for your reply. The web site I am developing is based on the http://www.ofoto.com site. Clients will be allowed to upload their photos for processing, viewing, etc. Am I correct in that the upload folder is just a temporary holding area for uploaded files? it sounds as though as soon as they are uploaded, they need to be moved to another folder immediately. In my case described in this posting, files were deleted immediately after the upload was finished.

One more question... Is the gallery path the path for the files to,be uploaded to or the path that contains the ImageUploader files?

Many thanks,

Steve

Fedor
Posted: Sunday, October 16, 2005 9:13:39 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,254
Points: -345
Location: WA, US
Hello Steve,

Quote:
Steve Greenstein (10/14/2005)


Many thanks for your reply. The web site I am developing is based on the http://www.ofoto.com site. Clients will be allowed to upload their photos for processing, viewing, etc.


BTW we have PhotoPark solution which is ofoto like. It allows to upload, edit, share, and order images. It is build using ASP.NET. If you are interested in online demo please contact us at sales@aurigma.com.

Quote:
Steve Greenstein (10/14/2005)

Am I correct in that the upload folder is just a temporary holding area for uploaded files? it sounds as though as soon as they are uploaded, they need to be moved to another folder immediately. In my case described in this posting, files were deleted immediately after the upload was finished.


Upload.aspx is just sample how to process uploaded fiedls on server. You can modify this script to save uploaded files into final place wihout using temporary folder. Please see Upload.aspx source code for more info.

Quote:
One more question... Is the gallery path the path for the files to,be uploaded to or the path that contains the ImageUploader files?


It is path for the files to be uploaded.


Best regards,
Fedor Skvortsov
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.