-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the file name of file uploaded #76
Comments
I'm not sure what $(yourContentEle).SPControlUpload({
...
onPagePage: function(ev){
if (ev.state === 2) {
// user selected a file, but upload has not happen yet.
}
}
}) You should then be able to track whether the user has actually uploaded the file or not... /Paul. |
As you can see, I want to check if the file is selected when the Save button is clicked. above code is fired when the Upload button is hit. |
Ahh. Ok.
Then the event you need does not exist today in this widget. It would have to be enhanced to support emitting an event as soon as the user selected a file and maybe have a method that you could use to detect if a file was picked (hasFileSelected()).
I can't promise a timeline, but if I get some time I will try to look into it.
Paul
…-- sent from mobile
|
Hi, We have the SPWidget Upload control embedded in the edit list form. So we have encountered users selecting file from the desktop, but forget to click on Upload button, instead they submit the edit form with Save Click.
How do we check if the file was uploaded in PreSave function.
The text was updated successfully, but these errors were encountered: