Could not enqueue task UploadTask #151
Replies: 4 comments
-
Quick reaction:
Also, you may find additional log entries that explain why enqueue fails in the Console. Let me know if this works - if not, I'll dig a little deeper! |
Beta Was this translation helpful? Give feedback.
-
Also, you should not have content-type, content-disposition and content-encoding in your headers: they are set by the downloader based on the various Please share the Console output as well, so we can understand why the task cannot be enqueued. |
Beta Was this translation helpful? Give feedback.
-
All of that helped + my own stupidity. I only checked inside Android Studio, but once I ran it on Xcode directly, it was obvious I had a mistake in my path, so it couldn't find the file. Strangely that didn't get shown in the log output in Android Studio. I also needed to set post: "binary" and remove the fields: { ... } to make it a binary upload. Beforehand with fields it was multi-part upload. Worked out very well so far. Upload is way faster than my previous implementation. Next onto the Android side. Thank you very much for this great plugin. |
Beta Was this translation helpful? Give feedback.
-
Great! And yes, logs from the 'native' side of the downloader will show up in Console (iOS) and LogCat (Android), not in the regular Flutter log in Android Studio. Closing this for now, let me know if you run into issues with the Android side :) |
Beta Was this translation helpful? Give feedback.
-
Hey. I'm failing to properly set up an upload task. Due to my previous post I learned to put my photo I take from the iOS asset picker and store it locally in the documents directory, to have a non-changing place for the background uploader.
The task is to upload it to a presigned URL bucket on Amazon S3. I have that code working without the background uploader, as http.StreamedRequest with PUT as method. Works proper. Now I want to port that using the background uploader.
Here's quite plain simple upload task code:
Here's my output:
I always get an "Could not enqueue task UploadTask" without further information. Any idea what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions