We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const img_uri = data:image/png;base64, ${value}; const file = { uri: img_uri, name: "image.png", type: "image/png" }; const options = { keyPrefix: "media/public/profile/", bucket: "asdasdasdsad", region: "asdsadsad", accessKey: "asdasdsadsadsadsadadadad", secretKey: "dasdsadsadsadadasdasdasdsadasd", successActionStatus: 201 }; RNS3.put(file, options)
data:image/png;base64, ${value}
The text was updated successfully, but these errors were encountered:
use a suitable converter for base64 instead then pass the uri
Sorry, something went wrong.
did you find solution for this ?
@prakhar-mindcrew use this library : import { RNS3 } from "react-native-upload-aws-s3-master"; options = { keyPrefix: "media/story/" + (imagesToUpload[file].type == "video/mp4" ? "video/" : "image/"), bucket: "your bucket", region: "your region", accessKey: "your access key", secretKey: "your secret key", successActionStatus: 201, maxRetries:4 }; let response = await RNS3.put(imagesToUpload[file], options);
No branches or pull requests
const img_uri =
data:image/png;base64, ${value}
;const file = {
uri: img_uri,
name: "image.png",
type: "image/png"
};
const options = {
keyPrefix: "media/public/profile/",
bucket: "asdasdasdsad",
region: "asdsadsad",
accessKey: "asdasdsadsadsadsadadadad",
secretKey: "dasdsadsadsadadasdasdasdsadasd",
successActionStatus: 201
};
RNS3.put(file, options)
The text was updated successfully, but these errors were encountered: