Comments (2)
You can submit form data something like this :
export const uploadBackground = async (url: string, file: string, data: any) => {
return backgroundUpload(CONFIG.API_URL + url, file, {
uploadType: UploadType.MULTIPART,
httpMethod: UploaderHttpMethod.POST,
fieldName: 'myFile',
mimeType: getMimeType(file),
parameters: data, // This is nothing but your other data apart from image
headers: {
Authorization: 'Bearer ' + Storage.get('TOKEN')
}
});
};
from react-native-compressor.
Is there any way to upload multiple files (videos and images)?
Along with data as parameters
from react-native-compressor.
Related Issues (20)
- Video compression breaks video stream compatibility HOT 9
- Cannot get the blob for thumbnail url HOT 2
- Question: can this lib convert files ? HOT 3
- No ability to select timestamp of video for thumbnail HOT 1
- 压缩后打印出来的本地路径和原路径相同 HOT 4
- Build error at ImageCompressor.swift file - Cannot find 'RCTResizeMode' in scope HOT 2
- IOS Build Error: cannot find React/RCTResizeMode.h' in scope HOT 2
- [Android] backgroundUpload crashes when no uploadType provided HOT 1
- [Android] Compilation failed for task compileDebugKotlin HOT 2
- Question: Is it possible to mirror a video on android using mp4parser in this module?
- Expo go link error HOT 2
- when i upload file using backgroundUpload, the body inside the response is empty [ios] HOT 1
- Android build error HOT 1
- Question: How to upload with Multipart? HOT 3
- Cannot Run in Expo Go HOT 5
- Cancel Upload Throws Error: [Error: Upload Failed]
- Compressed video on Android is not playable on macOS or iOS HOT 9
- RNCompressorSpec.h file not found HOT 1
- Image rotating on iOS (Orientation issue) HOT 2
- on a pixel 7, there is some distortion of an image after compression HOT 2
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 react-native-compressor.