2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Thanks @Riku for your inputs.
I fixed the problem by replacing
base64.decode(base64_data);
with
AWS.util.base64.decode(base64_data)
I'm yet to investigate further on the difference bewteen AWS base64 decode and base64.decode() from react-native-base64 package.
Probably S3 likes the file to be decoded from aws-sdk package.. ;-) :D
Thanks again and have a nice day.
con risposta un anno fa
0
How about making the ContentType be automatically retrieved from the file as follows?
ContentType: mimetypes.get(file)
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- Come faccio a creare un'applicazione per la piattaforma Android in Amazon SNS per le notifiche push?AWS UFFICIALEAggiornata 2 anni fa