Large File Uploads in Django & Amazon AWS S3 // Django + jQuery to upload to AWS S3

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 30

  • @WBraxx
    @WBraxx 7 років тому

    Yes. Please more videos on Django + AWS. I'm sure I'm not using full potential

  • @AliKhundmiri
    @AliKhundmiri 7 років тому +1

    Great to see another video from you!

  • @ThePirateHistory
    @ThePirateHistory 7 років тому +6

    Can you make a video on using channels or webscoket?

  • @yashpatel9550
    @yashpatel9550 5 років тому

    good tutorial...is there any other options on heroku to upload files rather than using s3 bucket...?

  • @thedataengine
    @thedataengine 4 роки тому +2

    How can i use multiple buckets in my django and create path dynamically according to end users selection?

  • @parwaanvirk
    @parwaanvirk 2 роки тому

    For the jquery section of the code. What is begin stored in the csrf token value ? Where is that coming from ?? In my case it is showing null.

  • @ДмитрийБудко-о5р
    @ДмитрийБудко-о5р 6 років тому

    Very good video. I think will be interesting to see video about library pygal for making chart.

  • @AliKhundmiri
    @AliKhundmiri 7 років тому +2

    Can you make a video on using AWS cloudfront?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  7 років тому

      +Ali Khundmiri thanks for the suggestion... can you add this to joincfe.com/suggest/?

  • @EvanZamir
    @EvanZamir 7 років тому

    No doubt S3 is ubiquitous. Would be interested to see a similar video for uploading to Google Cloud Storage as well.

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  7 років тому

      +Evan Zamir interesting... have you used their API?

    • @EvanZamir
      @EvanZamir 7 років тому

      Well, sort of, I'm using django-storages to upload images to GCS. The tricky part I figured out is to use signed urls so that authenticated users can actually download the images from my bucket. For that I do use their API.

    • @MdShakilHossain-jv2od
      @MdShakilHossain-jv2od 4 роки тому

      @@EvanZamir kda

  • @gmkbabu2029
    @gmkbabu2029 4 роки тому

    hello, can you make a video on aws cognito, lambda api gateway authentication using python Django.

  • @nateriver8261
    @nateriver8261 7 років тому +1

    Hey, Justin, Please, make a video how to work with Jinja2 and Django

  • @JonesDTaylor
    @JonesDTaylor 7 років тому

    Hi Justin
    I am building a web application to share and upload videos (mobile and Desktop) using Django and Django Rest Framework. Is the content of this video relevant to my project ? !! Thanks.

  • @zamanEhsani
    @zamanEhsani 2 роки тому

    hi, I have been following your videos recently. for this one, I have implemented and it works fine on localhost. but, when i deploy it to Heroku for testing, the uploading of tile is blocked by cross-origin policy of s3. so i get back the policy and url. whiling trying to transfer the file into s3, it is blocked. but localhost works. I have checked the bucket name on s3, the cors policy origin is set to "*" which means it should allow from all domains to work. any solution to this? anybody

  • @jhonmoreira1685
    @jhonmoreira1685 6 років тому

    Justing you are the best , thank you

  • @fr3207
    @fr3207 6 років тому

    Video is perfect. I have an issue if anyone can help me it would be very good for all of us. I can't run the code for Frankfurt region cause of it is using only signature v4. This sample is using signature v2. Also tried for Ohio region but again the same result. Could anyone help about this issue? Here is the response:
    InvalidRequestThe authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

  • @S1rWakka
    @S1rWakka 7 років тому

    I keep getting 400-errors from the AWS-server. Could anyone tell me how I can diagnose the reason behind that?

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  7 років тому +1

      +S1rWakka I’m guessing your user policy isn’t correct

    • @GuruKal
      @GuruKal 7 років тому +2

      I was able to fix the 400 error that I got by removing the region from the constructed URL in the FilePolicyAPI endpoint:
      url = '{bucket}.s3.amazonaws.com/'.format(
      bucket=AWS_UPLOAD_STORAGE_BUCKET_NAME
      )

    • @S1rWakka
      @S1rWakka 7 років тому

      +CodingEntrepreneurs: I don't think the User Policy is the reason for my 400s, since I copied that directly from your example (replacing the bucket name with that of my own)

    • @S1rWakka
      @S1rWakka 7 років тому

      +Ahmed: Removing the region didn't solve the problem for me

    • @S1rWakka
      @S1rWakka 7 років тому

      This is the message I get when logging the xhr responseText:
      "The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256."
      It appears the problem was with the region (eu-central-1) of my bucket, which is apparently subject to a new signature version. The problem was solved when I switched to a us-east-1 bucket.

  • @MrChinner118
    @MrChinner118 7 років тому

    I looked this up today...