Skip to content

Why a Website Rejects Your File – and How to Fix It in Minutes

Job portals, visa forms and university sites reject files for a handful of reasons: the size, the format, the dimensions or a password. Here is how to read the error and fix the file without starting over.

By the Fileora team6 min read

You have filled in every field of a job application, a visa form or a university portal. You attach your photo or your scanned documents, press Upload, and get a red line of text: File type not allowed. Or Maximum size 200 KB. Or nothing at all – the spinner turns and the page forgets your file.

Almost every rejection comes down to one of five reasons. Once you know which one you are dealing with, the fix usually takes a minute or two, and you rarely need to take the photo or scan the document again.

First, read the error message

Upload forms are rarely friendly, but most of them do say what went wrong. Match the message to the row below before you change anything.

What the form saysWhat it meansThe usual fix
"File too large", "Maximum 2 MB"The file is heavier than the form allowsCompress it, or reduce its pixel size
"Invalid file type", "Only JPG and PDF"The format is not on the form's listConvert it to an accepted format
"Image must be 600×600 pixels"The width or height is wrongCrop or resize to the exact size
"Unable to read file", "Encrypted PDF"The PDF has a passwordRemove the password with a copy you own
No message, upload just failsName, connection or number of filesRename, retry, or combine files

One thing worth knowing: the list of formats in the file picker is only a hint. Mozilla's developer documentation explains that the browser's accept setting can be bypassed, so a site "should make sure that the accept attribute is backed up by appropriate server-side validation" (MDN). In other words, a file can be selected and still be refused a moment later by the server. That is normal, not a bug in your file.

"File too large"

This is the most common rejection by far. Phone cameras now save photos of 3 to 8 MB, and a scanned page saved as an image can be even bigger, while government and job portals often cap photos at 50 KB, 100 KB or 200 KB.

For photos and scans saved as images, compress them. The image compressor lets you set a target size and shows the result before you download it. If the form names an exact limit, use a dedicated page such as compress an image to 50 KB, which aims just under that figure.

If compression alone makes the photo blurry, the picture is simply much larger than the form needs. A 4000-pixel-wide photo shown in a 300-pixel box on an application wastes most of its weight. Shrink the width and height first with the image resizer – for example to 1200 pixels on the long side – and then compress. You keep far more sharpness this way.

For PDFs, use Compress PDF. Scanned PDFs shrink the most, because each page is really a photograph.

Two small traps:

  • KB and MB are not interchangeable. 1 MB is roughly 1,000 KB, so a 1.2 MB file is six times over a 200 KB limit, not "nearly there".
  • Aim a little under the limit. Some sites count a kilobyte as 1,000 bytes and others as 1,024. A file of 195 KB passes a 200 KB check on either system; one of exactly 200 KB may not.

Email has its own ceiling as well. Gmail's help pages state that for personal accounts "the limit is 25 MB" for attachments (Google), so the same compression fixes a bounced email.

"Format not supported"

The form wants JPG and you have something else. The three usual suspects:

HEIC photos from an iPhone. Since iOS 11, iPhones can save photos in HEIF (the files end in .heic), a format Apple says offers "better compression than JPEG" (Apple). Smaller files are great on the phone, but many websites and most Windows programs still don't accept them. Convert the photo with HEIC to JPG – you can drop several at once. To stop it happening again, Apple's same page explains the setting: on the iPhone open Settings, then Camera, tap Formats, then tap Most Compatible, and new photos are saved as JPG.

WebP images saved from a website. Right-click "Save image" increasingly gives you a .webp file. WebP to JPG turns it into a file every form accepts.

A photo where the form wants a PDF. Many portals ask for documents as PDF only. Put your photos or scans into one document with JPG to PDF, in the page order you choose.

Whatever you do, don't just rename the file. Changing photo.heic to photo.jpg changes the name, not the contents. Some forms check the real format inside the file and will still refuse it, and others accept it and then show a broken image to whoever reviews your application.

"Wrong image dimensions"

Passport, visa and ID photo uploads often demand an exact size in pixels, such as 600×600, or a ratio such as 35×45. Two different tools solve two different problems:

  • The shape is wrong (a tall phone photo for a square slot): crop it with Crop Image, keeping your face centred.
  • The shape is right but the numbers are too big: resize it to the exact width and height.

Do the cropping first and the resizing second, then check the file size again – a resized photo is often small enough already.

"Unable to read file" or "encrypted PDF"

Bank statements, salary slips and utility bills often arrive as password-protected PDFs. You can open them because you know the password, but an upload form can't, so it reports the file as damaged or encrypted.

If the document is yours and you know its password, Unlock PDF saves a copy without the password. You type the password once and get an ordinary PDF that any form can read. Keep the protected original as your own copy, and only upload the unlocked version to the site that asked for it.

When the upload fails without any message

No error, just a spinner or an empty field. Work through these in order:

  1. Rename the file. Long names, emoji, slashes and some non-English characters confuse older portals. passport-photo.jpg is always safe.
  2. One file, not five. If the form takes a single document but you have several scanned pages, combine them with Merge PDF first.
  3. Check the connection. A large file on a weak mobile signal can time out halfway. Compressing it also makes the upload faster.
  4. Try another browser. Some government portals are tested on one browser only. If Chrome fails, try Edge or Firefox before assuming the file is the problem.

A checklist before you press Upload

  • The format is one the form lists (JPG, PNG or PDF in most cases).
  • The size is a little under the stated limit.
  • Photos have the requested width and height, and the right shape.
  • PDFs open without a password.
  • The file name is short and plain.
  • You still have the original, untouched file somewhere safe.

That last point matters more than it looks. Compression and conversion make copies that are good for one purpose, and you may need the full-quality original for the next form.

The takeaway

An upload error feels like a dead end, but it is nearly always one of five things: size, format, dimensions, a password or a fussy portal. Read the message, fix that one thing on a copy of your file, and try again. All the tools mentioned here run in your browser on Fileora, so your documents are processed on your own device rather than uploaded somewhere else first – a sensible habit when the file is your passport, your payslip or your bank statement.