Vietnam government offices close on Tue 24 Nov 2026 (Vietnamese Culture Day). Please apply early so your e-visa is ready before the holiday. Need it that day? Use our Holiday emergency service, Mon 23 Nov 17:00 – Tue 24 Nov 17:00 (GMT+7). Apply now →

✉ support@vietnamvisaeasy.comWhatsApp: +84 947 754 252Vietnam time --:--:--◷ Support (GMT+7)
Apply Now
Emergency visa service is available on weekends & holidays. Apply now◆Flying within 24 hours?⚡ 1-hour urgent e-visa⏱ Stuck in “Processing”? Speed it up◆

"The File May Contain a Script, Please Try Again": Fixing Photo Uploads on evisa.gov.vn

By VietnamVisaEasy Visa Team · 2026-11-16

A frustrated woman with her hand on her head looking at a laptop on a desk

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 appearsWhen you upload the portrait or the passport page image
What it meansThe portal's file check refused the image file
What it does not meanThat your face, background or passport is wrong
Usual fixSave a new, plain JPG under 2 MB and upload again
If nothing worksTry 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.

  1. Start from the original photo. Use the camera image, not a copy that went through an editing or background app.
  2. 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.
  3. 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.
  4. Use a simple file name. Name it something like photo.jpg, with no symbols, emojis or very long names.
  5. 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.
  6. 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.

UploadCommon cause of the script warningFix
PortraitEdited in a filter or background appExport a fresh JPG from the original
PortraitHEIC renamed to .jpgExport a real JPG copy
Passport pageScanner PDF or TIFF converted badlyTake a clear phone photo of the page instead
Passport pagePhoto sent through a chat app and saved backUse the original camera file
EitherVery large or unusual fileSave 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.

ProblemWhen it showsWhat it means
"May contain a script"At upload, instantlyThe file was refused
Wrong format or too largeAt upload, instantlyThe file breaks the format or 2 MB rule
Amendment requiredDays after submissionAn officer wants a better photo or a correction
Wrong details on the visaAfter the visa is issuedA 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:

SpeedNormal, 4–6 working days4 working days3 working days2 working days1 working day5 working hours2.5 working hours1.5 working hours30–60 minutesWeekend or holiday
Total priceUS$50US$70US$90US$100US$110US$125US$155US$185US$215US$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.

Ask us on WhatsApp

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.

All E-Visa Processing & Problems guides →

Comments (0)

Leave a comment

Not shown on the page.

Need your visa today?

Urgent options from 30–60 minutes, also on weekends & holidays.

Apply now