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

Notification

Icon
Error

Options
Go to last post Go to first unread
tmoney6000  
#1 Posted : Thursday, March 13, 2008 11:30:34 PM(UTC)
tmoney6000

Rank: Member

Groups: Member
Joined: 1/29/2007(UTC)
Posts: 5

Is there any way to programatically cancel the upload? I'm want to use this for members on my site. I use a session based login system with php.

I would like to do either of the following:

1) Be able to define an onSubmit attribute in the form so I can make a quick ajax request to make the user is still logged in before sending the upload. Otherwise, cancel the form submit thus canceling the upload.

2) Be able to make the session check in the upload page and if not logged in, send a status code to the uploader so that the user is alerted about the upload not happening and let them know that they must login again, etc.

I noticed there is some type of auth feature, but I really need to be able to base this on my own check, as it is going to depend on the login plus some other attributes.

Any help would be appreciated.

Thanks,

Tom

tmoney6000  
#2 Posted : Sunday, March 16, 2008 1:02:56 PM(UTC)
tmoney6000

Rank: Member

Groups: Member
Joined: 1/29/2007(UTC)
Posts: 5

Nevermind, I found the BeforeUpload eventlistener d'oh!
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.