Form submit with Safari issue

Hi everyone, I was wondering if anyone else had come across this problem:
I use this html: input type=“file” name=“file”
inside my email form (Formbase in Foundation) to let people send me a file with their email.

I’ve discovered that now Safari won’t let me submit the form unless a file has been selected (It needs to be optional for the best user experience). Other browsers (Chrome, Firefox) are fine - just Safari on Mac & iOS. After a bit of googling I believe its a bug/feature that’s come up in a Safari update…?

Does anyone have a solution/advice for this issue?
Thanks :slight_smile:

1 Like

Same issue here !!

1 Like

Just a heads up here, I have tested Steve’s page and he did receive my email (he sent in a support ticket). One thing I asked him and will ask you @Keno is do you have any extensions turned on in Safari?? They can sometimes cause issues, specifically add blockers or popup blockers. I have just emailed Steve, so not sure if this was his issue, but the best way to test this is to turn off all extensions and see if it works. If it does work, add one extension at a time and see when it might break.

Since I have removed the input type “File”, it works again.

I have not turned on any extensions in my safari.

Can you add the input type file again and leave a link for me to look at??

Hi @Keno , I’m wondering - did you remove your upload function completely in your form, or edit the html in some fashion to get it working? Thanks :slight_smile:

Sorry for my late reply.

I have made a test page, where you can see both with input file and without.

You are welcome to test. @zeebe @Steve_T_NZ

Link —>

I’ve just discovered that if I choose a file, it works.

But if I do not choose a file, it does not work.

Have used the < input type=“file” name=“file”>

Yes that’s what I’d found too… :frowning: thanks for sharing :slight_smile:

1 Like

Just did a test post to your form Keno without adding a file, says it worked for m (at least I think it did) let me know if you got it.

I just get the mail from you @zeebe

In Safari it is not working for me. Just in chrome.

Do you have any extensions turned on in Safari?? If so, turn them all off. Even if you think the extension is nothing, try. I used Safari and you got my email.

I don’t have. @zeebe

If you have time you are welcome to acces my mac with TeamViewer

I just tested Safari and Firefox. Both say that it submitted ok without a file.

It sounds strange that it works by some.

I have now tested on iphone (safari).

Hi all, it’s very odd isn’t it, that I get the same results as @Keno on my site, but when @joeworkman & @zeebe try sending a ‘no-file form’ it works for them…?

Note: yesterday I used an ancient version of Safari on an old MacBook and it worked fine, but doesn’t work for me running up-to-date versions on my Macs or iOS devices!

@Steve_T_NZ I have replied to your ticket with a question. Please see that.

@Keno I have noticed the page with the upload is not a .php filename, but a .html filename. Surprised that it is working anywhere. Can you change the filename, remove the index.html file on your server after publishing all files. See if it works then.

Are you filling in all of the form fields?

Hey @joeworkman , I’ve tried every combination of filling in the form I can think of - it only seems to work (in Safari) if you select a file to upload.

I’ve just done some more googling and found this:
…see we’re not crazy! :stuck_out_tongue_closed_eyes: I guess we wait for a Safari update to cure this? :face_with_raised_eyebrow:


Now it’s changed to PHP and it makes no difference.