-
-
Notifications
You must be signed in to change notification settings - Fork 693
Upload Service Testbed
When signaling an upload issue, be sure the problem you're facing can be replicated with the upload service testbed, otherwise it may be a network error, your server error or a device specific error which is not related to the library.
If the error can be reproduced, describe the steps to reproduce and add LogCat output + server output to the issue.
Following this guide: https://github.com/gotev/android-upload-service/wiki/Testing-and-working-examples
-
Get Upload Service Demo Server. Run the demo server in a terminal window and keep it open.
-
Get the example app:
git clone https://github.com/gotev/android-upload-service.git
Open Android Studio and open the project located in
examples/app
-
Run the demo app on an emulator. Set LogCat to display only output from package
net.gotev.uploadservicedemo
atdebug
level. -
Open your emulator's browser and download a file from here: https://www.thinkbroadband.com/download It will be stored in the
Downloads
directory. -
get back to the demo app and:
- tap on "New Multipart Upload"
- copy the multipart URL from the server's terminal window (e.g.
http://192.168.1.132:3000/upload/multipart
) and paste into the appìs text field (long click on the field, release and then select Paste from the popup window) - click on "Add file", type "file" and click on
next
- select the file you downloaded at step 4
- tap on the checkmark in the upper right corner to start the upload
-
wait for the upload to complete