Welcome Guest Search | Active Topics | Sign In | Register

.info and .status files remaining after Upload Options
AlexisVZ
Posted: Friday, September 7, 2007 9:03:18 AM
Rank: Advanced Member
Groups: Member

Joined: 8/27/2007
Posts: 44
Hello again,

One more question.
After uploading a file using AjaxUploader, I have an .INFO and .STATUS file remaining in the upload directory. Shouldn't these be automatically cleaned up ? Or if I need to delete these manually, what's the best practice ?

(I tried to search for already existing info on the forum, but the search did seem to work ?).

The code handling the upload is:



If Me.AJAXUploader1.PostedFiles.Length > 0 Then
Dim AllowedMimeTypes As String = "audio/x-mp3,audio/mpeg"
If AllowedMimeTypes.Contains(Me.AJAXUploader1.PostedFiles(0).ContentType) Then
Dim Filename As String

Select Case Me.drpUploadTrackType.SelectedValue
Case "Sample"
Filename = "D:\Sites\Passacaille\Upload\Samples\" & Me.gvTracks.SelectedValue & ".mp3"
Case Else 'full
Filename = "D:\Sites\Passacaille\Upload\Tracks\" & Me.gvTracks.SelectedValue & ".mp3"
End Select
If System.IO.File.Exists(Filename) Then System.IO.File.Delete(Filename)
System.IO.File.Move(Me.AJAXUploader1.PostedFiles(0).TempFileName, Filename)
Me.AJAXUploader1.ClearPostedFiles()
Me.gvTracks.DataBind()
Me.lblUploadTrack.Visible = False
Else
Me.lblUploadTrack.Text = "only .mp3 files are allowed"
Me.lblUploadTrack.Visible = True
End If
End If



Best Regards,
Alexis
eo_support
Posted: Friday, September 7, 2007 9:11:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,093
Don't worry about those. AJAXUploader runs a sweeper and clear those files in the background. They will eventually be cleared automatically.
AlexisVZ
Posted: Friday, September 7, 2007 10:15:45 PM
Rank: Advanced Member
Groups: Member

Joined: 8/27/2007
Posts: 44
OK, but can you tell me how at when the sweeper should run ...the leftovers are from uploads that were done 2 days ago ...
eo_support
Posted: Saturday, September 8, 2007 6:20:46 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,093
Hum...the sweeper runs more often than that. There is one scenario that I can think of that can drag this long:

1. You run the app, upload some files, this leaves .info and .status file;
2. You close out your app before the sweeper gets a chance to clean up;
3. You run your app again, but no longer use AJAXUploader. The sweeper will only be activated when the app uses the uploader;

The the least extend, these temp file should not accumulate, and we never had any report that they do. So I would keep an eye on them to see if that happens. If it happens let us know and we will take a look.

Thanks
AlexisVZ
Posted: Saturday, September 8, 2007 6:28:45 AM
Rank: Advanced Member
Groups: Member

Joined: 8/27/2007
Posts: 44
Well, they seem to accumulate ... even if the user is performing several uploads after each other in the same or later sessions, and also still using AJAXUploader ... Do you need me to post the aspx code as well ?
eo_support
Posted: Saturday, September 8, 2007 6:36:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,093
It would be easier if we can see it on your machine. I've set up an online meeting for you. You mind to join? I've sent the link to your private messages.
AlexisVZ
Posted: Saturday, September 8, 2007 7:58:22 AM
Rank: Advanced Member
Groups: Member

Joined: 8/27/2007
Posts: 44
Sorry, I didn't saw the link for the online meeting in time ... and now it is expired ... can you send it again ?


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.