This topic is locked
[SOLVED]

 move_uploaded_file function and IE vs Chrome

7/17/2013 7:40:46 PM
PHPRunner General questions
C
chuckbower author

This is a very strange problem / error. I am testing another hosting provider, and this application worked successfully on my old hosting provider. The application is a simple one, a portal for documents. The app uses a table with a Mediumtext column to store the uploaded file with the file/image choice.
When I use Chrome latest version (28.0.1500.72) the upload works successfully. When I use IE V10 (V10.0.9200.16635), I get an error on the move_uploaded_file function. "The second argument to copy() function cannot be a directory". The "more info" link shows me that indeed, argument 2 is only a folder name, and not a folder and file destination.
I have tried BOTH simple folder destination (default of files) and the full absolute path. In either case, my upload is satisfactory in Chrome and fails in Internet Explorer. Just for testing sake, I tried Mozilla Firefox (22.0) and it works successfully too. I am uploading the same file in all cases, one with a proper name (no special characters in the name other than an underscore).
I should probably add that the app has no event changes, and the only visual editor changes were to drag the column sizes larger for the uploaded file name. It's really a pretty vanilla, unmodified app. Oh, and the permissions on the upload folder are 777 - all permissions.
Any thoughts? I sure hate to drop the new hosting provider, as they have blazing speed for an inexpensive price (at least compared to 1 and 1).
Chuck

C
chuckbower author 7/17/2013

Ugh, I threw a couple of echos into my "Before Add" event just to echo another field on the page, as well as the file name. Voila. When I run in IE, there is NO file name. When I run in Chrome, it echos and works as expected.
So.... I added my site to IE compatibility mode. And then tried this. And voila. it works... the file uploads, and the echo displays the file name...
I'm not sure what this means. I don't think I want to tell my clients to run this in IE compatibility mode....
Chuck

Sergey Kornilov admin 7/18/2013

This is quite strange. We would need to have more info. You can post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.