Skip to content

ashishg-dev/multipart-image-upload-android-using-gotev-uploadservice

Repository files navigation

multipart-image-upload-android-using-gotev-uploadservice

Features.

1 - Easy and small library.
2 - Upload file/images to server with multi-part/form-data.
3 - Show progress of uploading on notification.
4 - Customize your own notifiaction.
5 - Work in background thread even if application is in doze mode.
6 - Also supported for Oreo and above.

Add this to your (app level) build.gradle file


implementation 'net.gotev:uploadservice-ftp:3.5.0

Small Example


MultipartUploadRequest(this, uploadId, ConstantKey.SERVERURL).addFileToUpload(
                    Environment.getExternalStorageDirectory().toString() + "/.ashish/" + file_name,
                    "file", file_name)
                .addHeader("Content-Type", ConstantKey.CONTENT_TYPE)
                .addHeader("Authorization", ConstantKey.AUTHORIZATION)
                .addParameter("employeeid", ConstantKey.EMPLOYEEID)
                .setNotificationConfig(getNotificationConfig(uploadId))
                .setMaxRetries(2)
                .startUpload()

Screenshot of the application



Thank You

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages