React-Native-Tips
React-Native-Tips copied to clipboard
Hi, I was wondering how to to the same thing in typescript. I get an error with this line: ``` data.append('photo', { uri: photo.uri, type: 'image/jpeg', name: 'testPhotoName' }); ```...
Update README.md understability
I tried uploading the image to the PHP server but it's not working although I was able to upload normal String but getting the issue in image uploading need help
implemented the same ` if (evt.lengthComputable) { progressFun((evt.loaded / evt.total) * 100); const progress = (evt.loaded / evt.total) * 100; console.log('progress123', progress, evt.loaded, evt.total); //percentageDiv.innerHTML = Math.round(evt.loaded / evt.total *...
In the description you use photo/image as an example, but if the file is pdf or doc how can I get the URI?
i use this exact same code const data = new FormData(); data.append('name', 'testName'); // you can append anyone. data.append('photo', { uri: photo.uri, type: 'image/jpeg', // or photo.type name: 'testPhotoName' });...
Hi! Just uploaded a sample repo here https://github.com/mgscreativa/React-Native-Upload-Files-to-Meteor-Server
Hi is this correct? where does opts come from? ``` const photos = [photo1, photo2, ...] photos.forEach((photo) => { data.append('photo', { uri: photo.uri, type: 'image/jpeg', // or photo.type name: photos.name...