Comments (1)
Hi @pdf9,
Excellent question! As it turns out, this is not possible right now, at least not out of the box. We do not emit a signal, for files that have been uploaded. However, this could be easily implemented around here:
django-s3file/s3file/static/s3file/js/s3file.js
Lines 91 to 96 in b604060
All that being said, if you S3 bucket is not public, you will need to make a signing request to your app server. I would recommend this, having your bucket public by default has caused a great many security incidents in the past.
Anyhow, I would be open to add the event, but bear in mind, that this will not fully solve your problem. I believe it might be simpler to just submit the form and display the image in the next step. Another solution would be to show the picture that is being uploaded, while it's being uploaded via JavaScript, see https://stackoverflow.com/a/4459419/649951
I hope this gives you an idea of how to tackle your problem.
If you have any further questions, please let me know. Should you be interested in adding a JS signal for successful uploads, please reopen this issue.
Best,
Joe
from django-s3file.
Related Issues (20)
- AWS_LOCATION or S3Boto3Storage.location not supported
- Feature request: support for non-empty directory uploads HOT 3
- Documentation Improvement: Using s3file in development HOT 7
- Want me to try and integrate EvaporateJS? HOT 1
- Adding exception to certain files? HOT 7
- tmp folder not appearing HOT 19
- No Demo/Sample Codes/Blogs to illustrate the use of this library HOT 1
- Only upload to S3 and bypass uploading to Django? HOT 3
- Progress event listener isn't working?! HOT 3
- Uploading file takes more than expected
- Ability to change presigned URL conditions HOT 3
- Large file performance HOT 1
- Large file greater than 5GB HOT 4
- Files with identical base names cause storage file collision HOT 5
- Is Python 3.9 really required HOT 1
- This field is required error
- S3OptimizedUploadStorage: self._clean_name does not exist
- CORS error when attempting to upload non-image to ImageField HOT 3
- add progress in normal admin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-s3file.