Still Can't Upload Some Files
Posted: Wed Oct 27, 2004 10:28 am
Greetings once again,
I've posted this problem three times to different message boards and so far I've gotten help but no solutions. Before, it was only happening with images, now it's happening with all files on the form posted in the reply to this message. Below I've "attached" two files. The first is the upload_resume.php which contains the <form> that the user will use to search for and upload their resume. The second file is the process that takes the uploaded file and is named pro_upload_resume.php.
Here's the symptoms. In Internet Explorer, you can search for and find a file using the browse button created by the <input type="file"> field. Then, when you click the upload button you are sent to the process page (second pagebelow) but the browser displays a page cannot be displayed error and the title of the page is "Cannot find server." However, I was just on the server for the previous file so that seems pretty mysterious to me.
In FireFox, Mozilla, and Netscape when you click the upload button nothing happens at all. You don't go to the process page, you don't get any error messages. It's as if the <input type="submit"> button is just an <input type="button"> button with no associated actions.
On a Mac with Safari, I receive the message "Safari can't open the page ... because it could not load any data from this location."
However, when I used an extremely small .htm file (<10kb) it worked and correctly gave me an error saying that the file was not a .pdf file, which is what I want to happen. Why does this work with some files but not others.
In php.ini the max upload file size is set to 2 MB and I've tried to use the MAX_FILE_SIZE hidden input field to set the max for this file at 1 MB. I assume that MAX_FILE_SIZE is in bytes so 1 MB is 1000000 for the value of MAX_FILE_SIZE but perhaps I'm wrong and I can't find docuentation on that anywhere.
So, any ideas why the form below uploads some files but not all files and when it doesn't upload files it doesn't seem to do anything? I've been pulling my hair out over applications like these now for about a month and I've gotten nowhere.
Hoping you can help me,
-- Dave --
I've posted this problem three times to different message boards and so far I've gotten help but no solutions. Before, it was only happening with images, now it's happening with all files on the form posted in the reply to this message. Below I've "attached" two files. The first is the upload_resume.php which contains the <form> that the user will use to search for and upload their resume. The second file is the process that takes the uploaded file and is named pro_upload_resume.php.
Here's the symptoms. In Internet Explorer, you can search for and find a file using the browse button created by the <input type="file"> field. Then, when you click the upload button you are sent to the process page (second pagebelow) but the browser displays a page cannot be displayed error and the title of the page is "Cannot find server." However, I was just on the server for the previous file so that seems pretty mysterious to me.
In FireFox, Mozilla, and Netscape when you click the upload button nothing happens at all. You don't go to the process page, you don't get any error messages. It's as if the <input type="submit"> button is just an <input type="button"> button with no associated actions.
On a Mac with Safari, I receive the message "Safari can't open the page ... because it could not load any data from this location."
However, when I used an extremely small .htm file (<10kb) it worked and correctly gave me an error saying that the file was not a .pdf file, which is what I want to happen. Why does this work with some files but not others.
In php.ini the max upload file size is set to 2 MB and I've tried to use the MAX_FILE_SIZE hidden input field to set the max for this file at 1 MB. I assume that MAX_FILE_SIZE is in bytes so 1 MB is 1000000 for the value of MAX_FILE_SIZE but perhaps I'm wrong and I can't find docuentation on that anywhere.
So, any ideas why the form below uploads some files but not all files and when it doesn't upload files it doesn't seem to do anything? I've been pulling my hair out over applications like these now for about a month and I've gotten nowhere.
Hoping you can help me,
-- Dave --