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.
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
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.
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.
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 )
+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)
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.
Great to see another video from you!
Yes. Please more videos on Django + AWS. I'm sure I'm not using full potential
Can you make a video on using channels or webscoket?
Very good video. I think will be interesting to see video about library pygal for making chart.
good tutorial...is there any other options on heroku to upload files rather than using s3 bucket...?
How can i use multiple buckets in my django and create path dynamically according to end users selection?
Justing you are the best , thank you
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.
No doubt S3 is ubiquitous. Would be interested to see a similar video for uploading to Google Cloud Storage as well.
+Evan Zamir interesting... have you used their API?
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.
@@EvanZamir kda
Hey, Justin, Please, make a video how to work with Jinja2 and Django
Can you make a video on using AWS cloudfront?
+Ali Khundmiri thanks for the suggestion... can you add this to joincfe.com/suggest/?
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
hello, can you make a video on aws cognito, lambda api gateway authentication using python Django.
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.
+Younes PhD Henni probably wouldn’t hurt to learn this
I looked this up today...
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.
I keep getting 400-errors from the AWS-server. Could anyone tell me how I can diagnose the reason behind that?
+S1rWakka I’m guessing your user policy isn’t correct
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
)
+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)
+Ahmed: Removing the region didn't solve the problem for me
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.