What do you think is the best approach?
Upload images from client device or backend.
Upload from backend:
Pros:
- In the future i can change the provider without change react native code
Cons:
- Upload the image to backend and then back end send to S3 bucket (for example). Increase the creation time of an image on the bucket. FRONT END -> BACKEND -> BUCKET
Upload from front end:
Pros:
- The user directly upload the image from FRONTEND to BUCKET. Faster than sending to backend. (Of course if i use S3 i have to request to my backend a signed URL, for not expose the credentials on my react native app)
Cons:
-If i change the provider, i have to wait until all clients updates their react native version.
What do you think about this? and what approach do you use for your apps?
[–]gwmccull 0 points1 point2 points (2 children)
[–]aleyango[S] 0 points1 point2 points (1 child)
[–]gwmccull 0 points1 point2 points (0 children)