Comments (6)
It sends all the files under one parameter in one request. Check your 'paramNameString' parameter has the array notation i.e.
String paramNameString = "theparameter[]";
and not...
String paramNameString = "theparameter";
Remember you will have to handle this differently on the server.
Another option is to use a different 'paramNameString' parameter for each file.
from android-upload-service.
Hi,
Please check you server are u receiving all files or only file. I am sure it is sending multiple files and i was send more than 10 images and it sent nicely.
Thanks
from android-upload-service.
Hi,Alex,I am getting an Error, Could not parse multipart and server code 500
i am sending two files with different params names.
UploadRequest request = new UploadRequest(this, UUID.randomUUID().toString(), erverUrlString);
request.addFileToUpload(fileToUploadPath_1, paramNameString1, "1.jpg",
ContentType.APPLICATION_OCTET_STREAM);
request.addFileToUpload(fileToUploadPath_2, paramNameString2, "2.jpg",
ContentType.APPLICATION_OCTET_STREAM);
UploadService.startUpload(request);
from android-upload-service.
500 Internal Server Error means that there's something wrong on the server
side. Please check your server code and also try one of the server examples
I provided with the library.
Il 14/lug/2015 05:50 AM, "shoebhoney" [email protected] ha scritto:
Hi,Alex,I am getting an Error, Could not parse multipart and server code
500
i am sending two files with different params names.UploadRequest request = new UploadRequest(this,
UUID.randomUUID().toString(), erverUrlString);
request.addFileToUpload(fileToUploadPath_1, paramNameString1, "1.jpg",
ContentType.APPLICATION_OCTET_STREAM);
request.addFileToUpload(fileToUploadPath_2, paramNameString2, "2.jpg",
ContentType.APPLICATION_OCTET_STREAM);
UploadService.startUpload(request);—
Reply to this email directly or view it on GitHub
#28 (comment)
.
from android-upload-service.
Thanks Alex,
I will check
My another issue is with progress bar, it fills 100% but file still uploading.
What i have to do for this?
from android-upload-service.
@shoebhoney Never experienced such issue with the progress bar. Do you have the same problem even after you have solved you server-side issues?
from android-upload-service.
Related Issues (20)
- Initial notification ignores custom notificationHandlerFactory HOT 7
- Stop Observing from RequestObserver using unregister causing a crash. HOT 3
- Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. HOT 6
- Google Play will soon require that apps target API level 33 or higher. This will be required for new apps and updates starting on August 31, 2023. HOT 4
- Single notification about all ongoing uploads HOT 3
- Please add support for Android 34 HOT 4
- Java Code Samples? HOT 1
- How to get uploaded file infomation that returned by service api
- Question: Is it possible to send a HTTP request once an upload task finishes? HOT 5
- Question on crash message when closing the app: Unable to create service net.gotev.uploadservice.UploadService HOT 16
- Missing default constructor for SchemeHandler classes HOT 3
- Incompatible version of Kotlin error after upgrading to 4.9.2 HOT 3
- register gotev receiver HOT 2
- Result of uploading file HOT 1
- Bitrise CI Build Failing with New Version HOT 1
- Re-implementation using WorkManager HOT 2
- Android Upload Service for KMM (Koltin Multiplateform) HOT 2
- Add contentType to addParameter HOT 3
- SDK 34 Play Store Rejected without video of FOREGROUND_SERVICE_DATA_SYNC functionality HOT 4
- duplicate uploadID HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-upload-service.