"The File May Contain a Script, Please Try Again": Fixing Photo Uploads on evisa.gov.vn
By VietnamVisaEasy Visa Team · 2026-11-16

A photo upload error that says "The file may contain a script, please try again" is one of the most confusing messages on the Vietnam e-visa portal. It does not mean your photo breaks the rules. It means the upload check on evisa.gov.vn did not accept the file itself. In most cases, a fresh JPG copy under 2 MB, with no edits, uploads normally. This guide explains why it happens and gives 6 steps to fix it.
| At a glance | "May contain a script" upload error |
|---|---|
| Where it appears | When you upload the portrait or the passport page image |
| What it means | The portal's file check refused the image file |
| What it does not mean | That your face, background or passport is wrong |
| Usual fix | Save a new, plain JPG under 2 MB and upload again |
| If nothing works | Try a desktop browser, or let us submit for you |
What does "the file may contain a script" mean?
It is a security message about the file, not a judgement on your photo. Websites that accept uploads scan files to block hidden code. When something inside an image looks unusual to that scan, the upload is refused with a warning like this one.
Travelers describe the wording in slightly different ways, such as "script tag" or "may contain a script". The portal does not publish an explanation of this message, so the causes below are the usual reasons such checks refuse an image, not an official list.
Typical triggers:
- A photo edited in an app that adds extra data, such as beauty filters, stickers or background removal.
- A file converted from HEIC, PNG or WebP in a way that kept odd data inside.
- A file renamed to .jpg without being converted.
- A scan saved by scanner software with long metadata attached.
- An image downloaded from a chat or cloud service in a strange format.
Your photo can look perfect on screen and still fail this check, because the scan reads the file, not the picture.
How do I fix the photo upload error step by step?
Make a new, simple JPG and upload that instead. These 6 steps solve most cases, in this order.
- Start from the original photo. Use the camera image, not a copy that went through an editing or background app.
- Save a real JPG. On a Mac, open it in Preview and choose File → Export → JPEG. On Windows, open it in Paint and use Save as → JPEG. On an iPhone, set Settings → Camera → Formats → Most Compatible before taking a new photo.
- Keep it under 2 MB. The portal asks for JPG or JPEG under 2 MB. A file of 200 KB to 1 MB is plenty for a sharp face.
- Use a simple file name. Name it something like photo.jpg, with no symbols, emojis or very long names.
- Try a screenshot if it still fails. Open the photo full screen, take a screenshot, crop it to a portrait 4×6 cm shape (2:3), and save that screenshot as JPG.
- Switch device or browser. Upload from a laptop in Chrome or Firefox, with VPNs and ad blockers turned off for the page.
For the rules the photo itself must meet, such as white background, no glasses and no hat, see our Vietnam visa photo requirements guide.
Does the error apply to the passport page too?
Yes, the same check runs on both uploads. The e-visa form asks for 2 images: your portrait and the passport data page. Either one can trigger the message.
| Upload | Common cause of the script warning | Fix |
|---|---|---|
| Portrait | Edited in a filter or background app | Export a fresh JPG from the original |
| Portrait | HEIC renamed to .jpg | Export a real JPG copy |
| Passport page | Scanner PDF or TIFF converted badly | Take a clear phone photo of the page instead |
| Passport page | Photo sent through a chat app and saved back | Use the original camera file |
| Either | Very large or unusual file | Save a smaller JPG under 2 MB |
For the passport page, lay the passport flat, turn off the flash, and keep all 4 corners and the 2 lines of letters at the bottom in the frame. The portal reads this image to fill in your details, so check every auto-filled field afterwards.
Is this different from a photo being rejected?
Yes, and the difference matters. The script message stops the upload at once, before you pay. A rejected photo is a later decision by an officer, after you submit.
| Problem | When it shows | What it means |
|---|---|---|
| "May contain a script" | At upload, instantly | The file was refused |
| Wrong format or too large | At upload, instantly | The file breaks the format or 2 MB rule |
| Amendment required | Days after submission | An officer wants a better photo or a correction |
| Wrong details on the visa | After the visa is issued | A correction (US$85 with us) or a new visa |
If you see an amendment request instead, our guide to Vietnam e-visa application error messages explains each message and what to send back.
What should I avoid doing?
Do not start several applications to get around the error. Each finished application is a separate file with its own government fee. Duplicate files can also confuse a later status search.
Also avoid:
- Editing the photo heavily to make it "pass". Filters and smoothing can lead to a rejection later.
- Uploading a photo cropped from your passport page. The portal wants a separate, recent portrait.
- Using a public computer for your passport scan.
- Paying a site that is not evisa.gov.vn or a real agency. Copycat sites sometimes claim to "fix" upload errors.
What if my flight is soon and the upload still fails?
Let us submit the application on the same official system. You send us your photo and passport page on WhatsApp or email. We check the files, convert them if needed, and file the application on evisa.gov.vn for you.
Our total prices include the government fee:
| Speed | Normal, 4–6 working days | 4 working days | 3 working days | 2 working days | 1 working day | 5 working hours | 2.5 working hours | 1.5 working hours | 30–60 minutes | Weekend or holiday |
|---|---|---|---|---|---|---|---|---|---|---|
| Total price | US$50 | US$70 | US$90 | US$100 | US$110 | US$125 | US$155 | US$185 | US$215 | US$230 |
Urgent speeds run during government office hours, 08:00–11:30 and 13:30–18:30 Vietnam time (GMT+7), Monday to Friday. Some passports, such as those of Algeria, Türkiye, Tunisia and Sri Lanka, use urgent speeds only. See the urgent Vietnam visa service for cutoffs, and our refund policy before you order.
How do I check the result after uploading?
Look up the application on the official portal. Once your photo and passport page are accepted and you pay, the portal gives you a registration code. Keep it with your email address and date of birth.
Check the status on the official e-visa portal, not only in your inbox. When the visa is issued, compare the name, passport number and dates with your passport, then save the PDF on your phone and print one copy for check-in.
Stuck on the upload right now? Send us a screenshot of the message and the photo you tried. We will tell you what to change, even if you prefer to apply yourself.
Frequently asked questions
Does "the file may contain a script" mean my computer has a virus?
Almost never. It means the portal's upload filter did not accept something inside the image file. A fresh, plain JPG copy usually passes.
Is my photo rejected because of my face or background?
No. This message appears at upload, before any officer sees the photo. Face, background and glasses problems show up later, as an amendment request.
Will a screenshot of my photo work?
Often, yes. A screenshot creates a new, simple image file. Crop it to a 4×6 cm portrait shape and save it as JPG under 2 MB.
Can I rename a PNG or HEIC file to .jpg?
No. Renaming does not change what is inside the file, and the portal may still block it. Export or save a real JPG copy instead.
Should I pay again if the upload failed?
You cannot pay before the uploads pass, so there is nothing to pay twice. If you already paid on another attempt, check your bank and the portal before starting a new application.
Need your visa today?
Urgent options from 30–60 minutes, also on weekends & holidays.

Comments (0)