Skip to content
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

Selecting the same file for upload again doesn't work #1119

Closed
rohand89 opened this issue Nov 4, 2015 · 7 comments
Closed

Selecting the same file for upload again doesn't work #1119

rohand89 opened this issue Nov 4, 2015 · 7 comments

Comments

@rohand89
Copy link

rohand89 commented Nov 4, 2015

I have a scenario in which i have the file upload control in a popup
If I select a.jpg for one item then when i try to add files for the second item and i select a.jpg again it doesn't upload the file since this file was already posted to the server for the first item, is there any workaround for this if i can reinitialize the control or maybe some other workaround?

@danialfarid
Copy link
Owner

It should resend it by default unless you disable update on click.

@rohand89
Copy link
Author

rohand89 commented Nov 5, 2015

Consider if you select a file it gets uploaded to the server and then try reselecting the same file it wont upload since the file has already been uploaded
The same thing happens when I add a product with that i select a image for the product since the page does not get reloaded when i go the add the same image for the second product it doesn't send any request to the server

@danialfarid
Copy link
Owner

Post your code here or create a jsfiddle for faster answer.

@rohand89
Copy link
Author

http://jsfiddle.net/rohansp/43arsr1h/42/

In fiddle mentioned above when you click on the button you will be given a option to enter a text and select a file. once you select a file the file name and the text entered shows in table but if you select the same file next time when you try to add another product the popup wont go away since the select file method is not fired

@rohand89
Copy link
Author

thanks. I got the solution form the work around mentioned in bug id #141 I just added the onclick="this.value = null" and it worked

@danialfarid danialfarid reopened this Nov 12, 2015
@KD25
Copy link

KD25 commented Nov 19, 2015

Hi Danial,

I checked with several post by you to allow same file upload multiple times by adding onclick="this.value =null" but this is not working with Windows safari.

Please let me know your suggestion on this.

@danialfarid
Copy link
Owner

You are using a very old version of the plugin upgrade to latest and it should work without setting onclick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants