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

How to not allow preview section removal? #195

Closed
fltiago opened this issue Mar 10, 2015 · 2 comments
Closed

How to not allow preview section removal? #195

fltiago opened this issue Mar 10, 2015 · 2 comments
Labels

Comments

@fltiago
Copy link

fltiago commented Mar 10, 2015

I set a preview image with initialPreview and set the overwriteInitial: true to replace the preview image with the uploaded one.

So far so good, but if the user want to remove the uploaded image, he can do that. I want to forbidden the uploaded image to be deleted, the user could only replace for another one.

My intent is not allow a break of my layout, adding and removing the image.

By the way, really cool plugin, good work.

@kartik-v
Copy link
Owner

Related to #185.

Track the enhancement being done in #205. With that enhancement, you can return an associative array object containing the new initialPreview and initialPreviewConfig via the events filebatchuploadsuccess and filebatchuploadcomplete.

@fltiago
Copy link
Author

fltiago commented Mar 16, 2015

Thanks.

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

No branches or pull requests

2 participants