Hi,
if you don't get response (image) I guess your pathes are wrong (at least for the output)
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 www.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 www.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.
By the way, I inserted an error object to AJAX request and I keep getting (object Object) as a response from JSON.
bt, please open a new thread for your questions and please provide us with an URL
This topic has been closed to new replies.