I have a php script that is breaking at the line below in Internet Explorer but everything works fine in FireFox and I’m not sure why…
$uploader->upload($new_file, $upload_dir);
Any ideas or anything I can try to get this to work in IE? When this page gets executed it simply stops at the line mentioned above and returns a white page. Here’s a larger view of the code:
$new_file = "";
$file_temp = "";
$upload_dir = "/ClientUploads/".$path."/".$date."/";
$newImagePaths = array();
$i=0;
foreach ($imageSet as $iS) {
$curTime = time();
$file_temp=TARGET_DIRECTORY.$iS['tmpname'];
$new_file=TARGET_DIRECTORY.$curTime."-".$iS['name'];
$newImagePaths[] = RELATIVE_DIRECTORY.$curTime."-".$iS['name'];
$fullImagePaths[] = $new_file;
rename($file_temp, $new_file);
// Upload
// $uploader = new DropboxUploader($_POST['email'], $_POST['password']);
$uploader = new DropboxUploader(DROPBOX_EMAIL, DROPBOX_PASSWORD);
// $uploader->upload($tmpFile, $_POST['dest']);
$uploader->upload($new_file, $upload_dir);
// unlink($new_file);
$i++;
}
Users are uploading files and this line is telling it where to save the file to. (Files are being saved in Dropbox using the dropbox api)
Any ideas why it won’t work in Internet Explorer?
Thanks