GithubHelp home page GithubHelp logo

Comments (1)

codingjoe avatar codingjoe commented on July 28, 2024

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:

results.forEach(function (result) {
var hiddenFileInput = document.createElement('input')
hiddenFileInput.type = 'hidden'
hiddenFileInput.name = name
hiddenFileInput.value = parseURL(result)
form.appendChild(hiddenFileInput)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.