Online Form Upload Errors and How to Fix Them
You have the right photo, the right signature and the right PDF – and the portal still says "Invalid file", spins forever, or logs you out just before payment. Many of these failures have nothing to do with the image itself. They come from the file's real format, its name, the browser, the network or the session. This guide goes through the common technical problems behind online application uploads in India, what each error usually means, and how to fix it without guesswork.
Quick fix order: (1) re-save the file as a real JPG/PDF, (2) give it a short simple name, (3) keep it a little inside the KB range, (4) use an updated Chrome, Edge or Firefox with pop-ups allowed for the portal, (5) finish uploads in one sitting before the session times out.
1. "Invalid file type" even though it says .jpg
A file's extension is just part of its name. The real format is stored inside the file. A photo can be named photo.jpg but actually be HEIC (iPhone), WebP (downloaded from a website or saved from some apps) or PNG. Portals that check the real content reject it.
- Fix: open the file in a converter and save a genuine JPG – for example with the Image Compressor (which outputs JPG) or the HEIC converter described in HEIC to JPG.
- Do not simply rename
.pngto.jpg; the inside stays PNG. - Some older portals accept
.jpgbut not.jpeg, or are fussy about upper-case.JPG. If a correct file is refused, rename the extension to lower-case.jpg– both are the same JPG format.
For why JPG is usually requested, see JPG vs PNG for online forms.
2. File names that break uploads
Long names with spaces, brackets, Hindi characters or several dots – like WhatsApp Image 2026-11-20 at 8.14.33 PM (1).jpeg – sometimes confuse older upload scripts. Rename to something short with only letters, numbers and underscores: photo.jpg, sign.jpg, ramesh_marksheet.pdf.
3. "File size should be between X and Y KB"
Two hidden causes make a file that "looks" right fail:
- 1,000 vs 1,024. Your computer may show 49.8 KB while the portal counts 51 KB. Aim inside the range – for 20–50 KB, target about 30–45 KB.
- "Size on disk" on Windows rounds up; the real size is the "Size" line in Properties.
Read KB vs MB vs pixels for the full explanation, and use the Image Compressor to type an exact KB target.
4. "Image dimensions are not correct"
The portal wants specific pixels (e.g. 200 × 230), and your file is a different size, or the right size but stretched. Crop to the right shape, then resize – see aspect ratio explained. If the form gives cm instead of pixels, convert with the cm to pixels table.
5. The photo appears sideways after upload
Phones often save photos in one direction and add a note in the file's metadata saying "rotate 90°". Your gallery reads that note; some portals ignore it and show the raw image sideways. Fix it by rotating the photo in an editor and saving a new copy, which writes the pixels upright. The metadata tool with "Keep photos upright" also handles this. More in EXIF metadata explained.
6. PDF problems
- Password-protected PDF: many portals cannot read encrypted files (common with downloaded e-statements). Remove the password you already know with Unlock PDF.
- PDF too big: see how PDF compression works and the PDF Compressor.
- Several documents, one upload slot: combine them in order with PDF Merge & Split, then compress.
- Portal wants JPG but you have PDF (or the reverse): convert with PDF to JPG or JPG to PDF.
7. Browser issues
- Outdated browser: government portals are usually tested on current Chrome, Edge and Firefox. Update the browser, or try another one.
- In-app browsers: opening a form link from inside a chat or social app opens a limited browser that may not handle file pickers, downloads or payment pop-ups well. Copy the link into Chrome or Safari.
- Pop-up blocker: payment gateways and print/preview pages often open in a new window. Allow pop-ups for the portal's site when asked.
- Old cached pages: if buttons do nothing or the page looks broken, refresh, or open the site in a private/incognito window.
- Browser translation: automatic page translation can break forms. Turn it off for the portal.
8. Session timeouts and lost forms
Many portals log you out after a period of inactivity for security. If you spend twenty minutes searching for a file, the next click may lose your work. Prepare every file first – photo, signature, thumb, declaration, certificates – in one folder, at the right sizes, before you open the form. Save each page as you go if the portal has a "Save" button.
9. Slow or failing uploads
- Peak days near the last date are slow everywhere. Apply early.
- Switching between Wi-Fi and mobile data mid-upload can drop the connection. Stay on one network.
- Upload one file at a time and wait for the confirmation before moving on.
10. Payment done, form not updated
Do not pay twice straight away. Note the transaction reference from your bank or UPI app, wait for the time the portal mentions, then check the application status or the portal's "verify payment" option. If the money has left your account but the form still shows unpaid, contact the helpdesk listed in the notification with the reference number.
A preparation checklist
| Check | How |
|---|---|
| Real format matches the requirement | Re-save as JPG/PDF in a converter |
| Short, simple file name | photo.jpg, sign.jpg |
| Pixels correct and not stretched | Crop, then resize |
| KB inside the range with margin | Compressor with a target |
| Photo upright | Rotate and re-save |
| PDF unlocked and under the limit | Unlock, compress |
| Updated browser, pop-ups allowed | Chrome / Edge / Firefox |
| All files ready before starting | One folder on the device |
Most "server errors" during uploads are fixed by one of these steps. If nothing works, the official helpdesk in your notification is the right place to ask – keep screenshots of the error message.
Each portal has its own rules. Always check the latest notification and the portal's own instructions.
Further reading: Base64 and data URLs explained.
Frequently asked questions
Why does the portal say invalid file when my file ends in .jpg?
The real format inside may be HEIC, PNG or WebP. Re-save it as a genuine JPG in a converter rather than renaming it.
Why does a 49.8 KB file fail a 50 KB limit?
The portal may count 1 KB as 1,000 bytes, so your file is about 51 KB to it. Aim a little inside the range.
Why is my photo sideways after upload?
Phones may store rotation as metadata that some portals ignore. Rotate and re-save the photo so the pixels are upright.
Sources
- MDN Web Docs – <input type="file">
- MDN Web Docs – Image file type and format guide
- MDN Web Docs – Window.open() and pop-up blocking
- Apple Support – Using HEIF or HEVC media on Apple devices
- NIST – Definitions of the SI units: the binary prefixes
Sources checked on 23 November 2026. Official notices and orders change; the latest version on the issuing body's website is final.