Hello,
check the last posts in this thread (it was asked before)
PHP related forum, discuss snippets, classes and tutorials
Hello,
check the last posts in this thread (it was asked before)
Quote from: bicho44
"Yup, the script works...
Also i no have the imagemagic and the variable its setted(?) to false... its that a problem?
Its xtrange because the 'showResponse' never get the info, also never get fired(In one of my test i just put an alert to see if something comming from the upload4 script)
Im gonna recheck, but maybe i just use a multiple uploader till i can modify to make a watermark and unzip version :D"
Did you every find a resolution for this? I am having the exact same problem. The script uploads and resizes just fine, creates both images, etc., but no response is posted. I, too, tried to just have it put some text to display and the response functions never get called. I'm stumped! Any insight would be greatly appreciated!
Hi,
if you don't get response (image) I guess your pathes are wrong (at least for the output)
This script is great–but I'm having a hard time installing image magick on leapord running MAMP–any good resources? Or at least a good host that has already imagemagic on it?
Hi,
I got a shared hosting account from linkdisk.com , they offer directadmin hosting with imagemagicks is enabled. They are very helpful and their server was always online until now
Quote from: Olaf"Hi,
I got a shared hosting account from linkdisk.com , they offer directadmin hosting with imagemagicks is enabled. They are very helpful and their server was always online until now ;)"
Thanks Olaf! I'll look them up.
small fixes needed (at least for Chrome browser which I use):
- first, in upload4jquery.php you should use different dirs:
$foto_upload->upload_dir = $_SERVER['DOCUMENT_ROOT']."/upload/";
$foto_upload->foto_folder = $_SERVER['DOCUMENT_ROOT']."/upload/files/";
$foto_upload->thumb_folder = $_SERVER['DOCUMENT_ROOT']."/upload/thumb/";
- second, you should fix JS showRequest function:
function showRequest(formData, jqForm, options) {
var fileToUploadValue = document.getElementById('fileToUpload').value;
if (fileToUploadValue=="") {
document.getElementById('message').innerHTML = 'Please select a file.';
return false;
}
return true;
}Hi,
you say that the "jquery styled" code doesn't work in Chrome?
var fileToUploadValue = $('input[@name=fileToUpload]').fieldValue();
Hi
Great code, seems to work after making Chrome changes above although I am on Mac and running Firefox and Safari. Although I get the showRequest results in form page, I do not get anything from showResponse. It uploads the file but it stays quite.
Moreover, sometimes thumbs are created sometimes not.
Lastly, where do you control the naming convention for files, I want to give my files the session IDs as names.
This topic has been closed to new replies.