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

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 30

  • @AliKhundmiri
    @AliKhundmiri 7 лет назад +1

    Great to see another video from you!

  • @WBraxx
    @WBraxx 7 лет назад

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

  • @ThePirateHistory
    @ThePirateHistory 7 лет назад +6

    Can you make a video on using channels or webscoket?

  • @ДмитрийБудко-о5р
    @ДмитрийБудко-о5р 6 лет назад

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

  • @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?

  • @jhonmoreira1685
    @jhonmoreira1685 6 лет назад

    Justing you are the best , thank you

  • @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.

  • @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

  • @nateriver8261
    @nateriver8261 7 лет назад +1

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

  • @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/?

  • @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

  • @gmkbabu2029
    @gmkbabu2029 4 года назад

    hello, can you make a video on aws cognito, lambda api gateway authentication using python 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.

  • @MrChinner118
    @MrChinner118 7 лет назад

    I looked this up today...

  • @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.