Cannot upload files using api and in AI studio

Unable to upload files through api suddently. I also checked in AI studio, also failed to upload files(PDF specifically). Started around 22:00 UTC+0

1 Like

Hi @PF_Team
Welcome to the AI Forum!!!

Could you please share the complete payload details along with the steps to reproduce the issue? This will help us investigate it more accurately and provide a more precise response.

2 Likes

thanks for reaching out,the issue has been identified and now labeled as resolved on the gemini status page, but I’m still struggling with the file storage quota bug sadly. When I try to use the batch api for a research task (with each jsonl file aroung 1G, totaled around 10G),when uploading the jsonl file, the system would first receive my files as if normal ,and fail once the file should be completly uploaded. And after several retries, I receive the storage quota error,even after I manually cleaned all the files uploaded before.
I started my task yesterday and the first few files were successfully uploaded and processed. When it comes to the final two jsonl files(with almost everything the same,just another part of the dataset),the file api issue happened.

log as follows:

…a lot of HTTP/1.1 200 OK here

2025-10-22 17:48:30,700 - INFO - HTTP Request: POST link here “HTTP/1.1 200 OK”
2025-10-22 17:48:34,864 - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/upload/v1beta/files?upload_id=AAwnv3JlkIOR-c3OQZTviDfcDkdwBTdyO9Dnb5Pai5oOB_CbMB04ejk9qCLJvqMM4U0sm3w34nniyi48VWv7BlUUT6UWhOz4zVsr_nKRlEZYbg&upload_protocol=resumable “HTTP/1.1 400 Bad Request”

after several tries:
429 RESOURCE_EXHAUSTED. {‘error’: {‘code’: 429, ‘message’: ‘You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: ai.dev/usage?tab=rate-limit.\n* Quota exceeded for metric: file_storage_bytes, limit: 21474836480’, ‘status’: ‘RESOURCE_EXHAUSTED’, ‘details’: [{‘@type’: ‘google.rpc.QuotaFailure’, ‘violations’: [{‘quotaMetric’: ‘file_storage_bytes’, ‘quotaId’: ‘FileStorageBytesPerProject’, ‘quotaValue’: ‘21474836480’}]}, {‘@type’: ‘google.rpc.Help’, ‘links’: [{‘description’: ‘Learn more about Gemini API quotas’, ‘url’: ‘ai.google.dev/gemini-api/docs/rate-limits’}]}]}}

I also cleaned the uploaded files manually but still the same problem

Hi @PF_Team

I have seen that you are facing Error 429: RESOURCE_EXHAUSTED - Rate Limit Exceeded. That means too many requests are being sent to the Gemini API within a short period. The API is temporarily blocking additional requests to prevent system overload.

I recommend you to please upgrade to a higher quota if your application requires a greater request capacity. For more details you can refer to this rate limit doc.

Yeah its about quota,but not gemini rate limit quota. File api storage quota is the point .I read the docs and it’s said that every project has a 20G storage limit. If used up, I can either wait for 48h to let the files expire or clear files manually through the file api. I tried the latter and verified there is not a single file still in storage, but the quota is still blocking me from uploading files. I GUESS I met with some bugs like zombie files since I perform the uploading and cleaning during the errornous period of the file api the day before yesterday.
I don’t know what to do right now and I’d really appreciate if someone could help. THX

What’s more its been 72h+,I am still bugged. I still cannot upload any files and would receive the file storage quota notice, PLZ anyone could help? I also tried to create a new project to go around the project 20G quota but still failed.

I encountered the same problem

Hi
If possible, could you please provide a sample of the code along with the steps to reproduce the issue? This will help us replicate the problem and present it to the appropriate teams.