Welcome Guest Search | Active Topics | Members

missing files Options
amigogo
Posted: Saturday, October 01, 2005 11:01:36 AM
Rank: Member
Groups: Member

Joined: 10/1/2005
Posts: 2
Points: 0
I found when I uploaded photos by two or more times, the previous files uploaded strangely missed. How should I restore the files or have them remained there?

I found when I uploaded photos by two or more times, the previous files uploaded strangely missed. How should I keep the previous files?
Alex Makhov
Posted: Saturday, October 01, 2005 8:38:56 PM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Hello,

Quote:
I found when I uploaded photos by two or more times, the previous files uploaded strangely missed.


What do you mean? Do your files disappear in Aurigma demo page or somewhere else?

Sincerely yours,
Alex Makhov
amigogo
Posted: Sunday, October 02, 2005 6:41:45 AM
Rank: Member
Groups: Member

Joined: 10/1/2005
Posts: 2
Points: 0
When I uploaded some additional files, I found the previously uploaded photos deleted, whether I have to upload files in one time? If I want to upload additonal files, whether I have to reupload all the files?

I found when I uploaded photos by two or more times, the previous files uploaded strangely missed. How should I keep the previous files?
Alex Makhov
Posted: Sunday, October 02, 2005 8:14:54 PM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Hello,

Show your upload processing code, please.

Sincerely yours,
Alex Makhov
jdennis
Posted: Thursday, October 20, 2005 2:06:14 AM
Rank: Member
Groups: Member

Joined: 10/20/2005
Posts: 1
Points: 0
I got this response from the support team at Aurigma.... The demo samples deliberately delete any previously uploaded files so as to keep the area clean.

Just delete the following code from the upload scripts (e.g. PersistsAspUpload.asp):


Code:
'We delete all files and descriptions for old files
Dim objFileSystem, objFolder, objSubFolder, objFile
Set objFileSystem = Server.CreateObject("Scripting.FileSystemObject")

'Delete source images
Set objFolder = objFileSystem.GetFolder(Server.MapPath(strGalleryPath))
For Each objFile In objFolder.Files
            objFileSystem.DeleteFile objFile.Path, True
Next

'Delete thumbnails
Set objFolder = objFileSystem.GetFolder(Server.MapPath(strGalleryPath) & "\Thumbnails")
For Each objFile In objFolder.Files
            objFileSystem.DeleteFile objFile.Path, True
Next

'Delete descriptions from database
MyConnection.Execute "DELETE FROM [File]"



Alex Makhov
Posted: Friday, October 21, 2005 2:53:20 AM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Yes,

The samples are configured to show how to upload files once. While uploading new files the old files are deleted. In other way the samples would be much more complicated.


Sincerely yours,
Alex Makhov
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.