Jump to content

File upload makes the browser try to download .php page!


Recommended Posts

The title says most of it..

I have a simple file input box that expects either an xml file, or an xml file inside a zip. I upload a test file, and instead of refreshing the page, the browser tries to download the page for some obscure reason.

Everything worked fine on my local PC, so I'm assuming it's something configured on my server that I'll have to get around.

The problem doesn't seem to be in the file upload itself, because if you upload some other file type, the system will get far enough to tell you that you've sent the wrong kind of file. Same applies if you try to upload an incorrectly formatted xml file.

The page itself is here: [a href=\"http://pospi.spadgos.com/projects/Xexplorer2/index.php?custom=1\" target=\"_blank\"]http://pospi.spadgos.com/projects/Xexplore...ex.php?custom=1[/a] if anyone needs to take a look.

Any help at all appreciated - I'm really stuck on this one!

cheers
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.