Quick answer: “File has script tag, please try again” is an upload message on the Vietnam e-visa government portal. It means the portal did not accept the image file you uploaded, usually because of how the file was saved, not because of what the photo shows. To fix it, save a fresh JPG copy under 2 MB and upload that file.
You are filling in your Vietnam e-visa application, you upload your portrait or passport page, and a pop-up says “File has script tag, please try again.” The form will not move forward until both images pass.
This guide explains what the file has script tag message means and which fixes applicants report working. It also covers a passport page that keeps failing and the related No MRZ error. If your flight is close, evisas vietnam can also prepare and file the application for you, with processing in as little as 1 business hour.
What Does “File Has Script Tag” Mean on the Vietnam E-Visa Form?
The government portal asks for two images at the very first step: a portrait photo and a photo of your passport data page. The official e-visa instructions require JPG or JPEG files under 2 MB, and the system checks each image as soon as you upload it.
“File has script tag” appears when that check does not accept the file. It is not a visa decision. Nothing has been submitted or paid at this point, because payment comes after the declaration steps and the portal does not let you submit until both images pass.
| Message you see | Where it appears | What it means | Next step |
| File has script tag, please try again | Portrait or passport page upload | The portal did not accept the file itself | Save a clean JPG copy (steps below) |
| No MRZ detected | Passport page upload | The portal could not read the ICAO lines | Take a new photo of the passport page |
| Low match | After both uploads | Your portrait and passport photo look too different | Follow the low match fix guide |

Why the File Has Script Tag Error Appears
The portal does not publish the rule behind this message. Reports from applicants point to the file, not the person in the photo. Some applicants even say the same passport scan worked on earlier applications and only failed recently.
Photos usually carry hidden details such as the camera model, date, and location, known as EXIF data. Applicants who removed that information, or created a fresh copy of the file, report that the upload then worked.
| Situation | How to spot it | What to do |
| Photo taken on a phone camera | The file comes straight from your gallery or cloud backup | Export a clean copy or send it to yourself (Steps 2 and 3) |
| Photo from a pharmacy, studio, or scanner | The file arrived by email or came out of scanner software | Open it and export a new JPEG (Step 2) |
| Not a real JPG | The name ends in .heic, .png, or .pdf, or someone renamed it to .jpg | Export it as JPEG, since renaming does not convert the file (Step 1) |
| File close to the limit | The size sits near or above 2 MB | Export a smaller copy, ideally under 1 MB (Step 4) |

How to Fix “File Has Script Tag, Please Try Again” (Step by Step)
Work through these steps in order. Applicants report the most success with Steps 2 and 3.
- Check the file is a real JPG under 2 MB. Look at the file name and size. A HEIC or PNG file renamed to .jpg still counts as the wrong format.
- Export a clean copy of the original photo. On a Mac, open it in Preview, choose File > Export, pick JPEG, and lower the quality slightly. On Windows, open it in Paint and choose Save as > JPEG picture.
- Or send the photo to yourself and save the copy. Send the image to yourself in a messaging app such as Signal, WhatsApp, or Messenger, then save the copy you receive. One applicant on a travel forum reported that this new copy uploaded without the error.
- Aim for under 1 MB. A smaller file stays well clear of the 2 MB limit. Keep the passport text sharp when you reduce the size.
- Use a simple file name. Name the file portrait.jpg or passport.jpg, with no symbols, accents, or apostrophes.
- Passport page still failing? Take a new photo of it. Lay the passport flat, show all four corners, turn the flash off, and repeat Step 2 or Step 3 with the new image.
If you use Safari, also try Chrome or Firefox on a computer.
How to Save a Clean JPG on Your Device
| Device | How to save a clean copy |
| Mac | Open in Preview > File > Export > Format: JPEG > Save |
| Windows | Open in Paint > File > Save as > JPEG picture |
| iPhone or Android | Send the photo to yourself in a messaging app, then save the received image |
| iPhone, for future photos | Set Settings > Camera > Formats > Most Compatible, so new photos save as JPG (Apple’s HEIF guide) |
Pro Tip: Always start from the original photo, not the file that failed. Skip the screenshot shortcut: screenshots often save as PNG, and at least one applicant still saw the error after uploading one.
Still Seeing the Error? What to Do Next
In reported cases, the passport page proved harder to fix than the portrait. If the file has script tag message survives every step, choose the option that fits your timeline.
| Option | When it fits | What happens |
| Try again on another device | You have a second computer or phone | You start with a fresh copy of the file |
| Email the portal’s technical support | You have time before your trip | Write to [email protected] with the exact message and the steps you tried |
| Hand the application to a specialist | Your departure date is close | evisas vietnam prepares and files the application for you |
evisas vietnam specialists have handled more than 4,000 e-visa applications in 2026. A specialist checks your portrait and passport page, and tells you within 5 minutes of payment if a document needs fixing, between 06:00 and 22:00 Vietnam time. You can start a new application with a specialist whenever the upload keeps you stuck.
Image suggestion: A visa specialist at a desk checking a passport data page scan on a laptop screen

“No MRZ Detected”: The Related Passport Upload Error
The machine-readable zone (MRZ), also called the ICAO lines, is the two rows of letters and chevrons at the bottom of your passport data page. The portal reads these lines to fill in your details, as explained in this overview of the machine-readable passport. If it cannot read them, guides describe the result as a “No MRZ detected” message.
Common causes:
- Glare from a flash or a lamp across the bottom lines
- A bottom edge or corner cut off
- A blurry or tilted photo
- The wrong page, such as the cover or a visa page
How to fix it:
- Lay the passport flat on a plain surface in daylight
- Hold the phone directly above the page, with all four corners in the frame
- Turn the flash off
- Zoom in before uploading and check you can read both bottom lines
For a full walkthrough of scan quality, see the Vietnam e-visa passport scan requirements guide.
Image suggestion: A specimen passport data page lying flat, with both ICAO lines clearly visible at the bottom. Use a specimen, never a customer passport.
After the Upload Works: Avoid the Next Delay
- Check the auto-filled details. The portal fills in your name and passport number from the ICAO lines. Compare every field with your passport, and see these common Vietnam e-visa mistakes before you continue.
- Match the photo rules. Your portrait must be 4cm by 6cm, taken within the last 6 months, on a white background with both ears visible. The Vietnam e-visa photo requirements guide covers the full list.
- Watch the calendar. Government processing runs on business days, so weekends and Vietnam public holidays add time.
Already submitted on the government portal and short on time? evisas vietnam can expedite a pending application from $64 USD at the time of writing, using your existing e-visa code, with no second government fee. The guide to expediting an e-visa that is still processing explains each step.
File Has Script Tag: FAQs
What does “file has script tag” mean?
It means the Vietnam e-visa portal did not accept the image file you uploaded. The message refers to the file, not to your face or passport details. A clean JPG copy under 2 MB usually solves it.
What does “file has a script tag” mean on the Vietnam visa form?
It is the same upload message, searched with slightly different wording. It appears when you upload the portrait or the passport data page. Follow the step-by-step fix above.
Is “file has script tag” a virus or security warning?
Nothing suggests your device or photo is infected. The portal has not explained the check, and applicants report that the message disappears once they upload a freshly saved copy of the same image.
Does this error mean my Vietnam e-visa was rejected?
No. The application has not been submitted, so the Vietnam Immigration Department has not reviewed it. Once both images upload, you continue the form as normal.
Have I paid anything when the error appears?
No. Image upload is the first step on the government portal, and payment comes only after you confirm your declaration. The portal will not let you submit until both images pass.
What file size and format does the Vietnam e-visa portal accept?
The official instructions require JPG or JPEG files under 2 MB. The portrait must be a recent 4×6 cm photo with a white background. A file under 1 MB gives you a comfortable margin.
Can I upload a screenshot of my passport?
It is not a reliable fix. Screenshots often save as PNG, and at least one applicant still saw the error after uploading one. Take a new photo of the passport page instead.
Can evisas vietnam upload the files for me?
Yes. When you apply with evisas vietnam, you share your portrait and passport page once, and a specialist reviews both before filing. More answers sit on the evisas vietnam FAQ page.
Final Thoughts
The file has script tag message stops the form, not your trip. A clean JPG copy under 2 MB clears it for many applicants, and a new photo of the passport page handles the stubborn cases. If your departure is close and the upload still fails, a specialist can take the application from here. The Vietnam Immigration Department issues every e-visa.
