Fix Expo-Laravel Image Upload
Budget: ₹600 – ₹1,500 INR
My React Native app (built with Expo) should let users pick a photo and send it to a Laravel API running on a remote server, yet the file never makes it through. Sometimes I get vague network or 500-level errors; other times the call appears to succeed but Laravel receives an empty payload.
I want this flow working end-to-end:
• Select or capture an image in the Expo app.
• Send it as multipart/form-data (or the most reliable alternative you recommend).
• Laravel stores the file under /storage/app/public/images and returns a JSON response with the public URL.
• The same code works consistently on iOS and Android, both in development (Expo Go) and in the production build.
Your task is to trace the break—whether it’s FormData construction, headers, file-system permissions, validation rules, or anything in between—and supply the fixes. Please update the relevant React Native components, Laravel controller/route logic, and any storage or CORS settings, then commit the changes to my Git repo. A short README explaining what changed and any new .env keys will wrap it up.
Once done, tapping “Upload” on my test screen should return a 200 OK and I should see the saved file when I hit the provided URL.
I want this flow working end-to-end:
• Select or capture an image in the Expo app.
• Send it as multipart/form-data (or the most reliable alternative you recommend).
• Laravel stores the file under /storage/app/public/images and returns a JSON response with the public URL.
• The same code works consistently on iOS and Android, both in development (Expo Go) and in the production build.
Your task is to trace the break—whether it’s FormData construction, headers, file-system permissions, validation rules, or anything in between—and supply the fixes. Please update the relevant React Native components, Laravel controller/route logic, and any storage or CORS settings, then commit the changes to my Git repo. A short README explaining what changed and any new .env keys will wrap it up.
Once done, tapping “Upload” on my test screen should return a 200 OK and I should see the saved file when I hit the provided URL.