-
Notifications
You must be signed in to change notification settings - Fork 876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[S3] uploadFile
uploads successfully a 0
bytes length file only from device
#4327
Comments
Thanks for opening this issue @dsaliberti. Logs guidance - sensitive information |
maybe this - almost 10 years old - issue on JQueryFileUpload - has somehow some clue?
maybe we can somehow handle the equivalent "multiple" or multipart from client? 🤔 |
@atierian Amplify.Storage.uploadFile(
key: key,
local: local,
options: options,
progressListener: progressListener
) |
@atierian Just tried to use 1.28.1 and got some unrelated errors on our Appsync models |
Interesting, thanks for sharing. That shouldn't happen, I opened aws-amplify/amplify-swift#2345 to track it. If you could provide any additional context there, like where that error is originating, it would be helpful. As to the upload issue, can you post the logs here after setting |
I just built using 1.27.1 and it was the same: Regarding the logs I mentioned previously, it's not something relevant but just what I printed from the On device iPhone 13 Pro:
and on the other hand, on Simulator we see:
for the exact same video file. Given my previous comment I'll need to pull and generate my AppSync models in order to use Amplify 1.28.1 Thanks again @atierian |
@atierian here follows the logs right before and after the I think the Log Messages
|
Thanks for the logs. We'll take a close look at this and get back to you here with any updates. |
@atierian Good news here 🎉
Basically I copied the video file into a folder within the app I'd highlight from this:
Thank you so much! Your request to mine my logs helped a lot! 👍 |
That's fantastic, thanks for letting us know! Thanks again! |
Describe the bug
All videos uploaded from the Simulator do work correctly: I see the upload request with expected bytes (non-zero):
Tho short videos, with some seconds duration uploads successfully (status code
200
) but0
bytes on the s3 request:This also happens on some types of videos like some Live Photos with
loop
orbounce
style. But it's easier to spot with any short video.To Reproduce
Steps to reproduce the behavior:
Observed Behavior
0 bytes on certain video uploads
Expected Behavior
The full content should be uploaded
Unique Configuration
Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)?
S3 Storage uploadFile - but also uses
Cognito
andDatastore
Environment(please complete the following information):
Cocoapods
5
14
Device Information (please complete the following information):
16
Additional context
Everything looks correct in the logs. Just the video content-length is
0
I reproduce it at any time!
Thanks in advance
The text was updated successfully, but these errors were encountered: