Hamza Maqbool
Hamza Maqbool
PD🧩 Plasmo Developers
Created by Hamza Maqbool on 10/1/2024 in #🔰newbie
Extension Works on DEV MODE but not in PRODUCTION MODE, Why???
Hi, I'm encountering an issue with image uploads to Facebook Marketplace in my Chrome extension. Here's a brief overview of the problem: In my contents/facebook.ts, I’m trying to upload images to Facebook Marketplace from image URLs. To avoid CORS errors, I first send the image URLs to background.ts, process them there, and then get a response back. This approach works perfectly in development mode, where I'm able to upload all 20 image files to Facebook Marketplace without any issues. However, in production mode, I’m only able to upload a few images—around 8 or 9 out of the 20. The remaining images, which exceed 4 MB, trigger an error from Facebook, stating that it cannot upload images larger than 4 MB. Thank you for your time and assistance. Best regards, Hamza
1 replies