Resize does not function (with Flash uploader)

See all posts See thread Reply

Re: Resize does not function (with Flash uploader) new!
by Ben Davenport, 16 years, 7 months ago
Sure thing, I am passing the image data from the flash uploader directly into the constructor as: $u = new upload($_FILES['Filedata']['tmp_name])

It would seem that would be the right way to go, however, any way I seem to pass the file it saves the file on my server with a .txt, i noticed in your it offers some protection against malicious code, etc.

If I rename the uploaded file with a jpg extension it works and all is well with the world, any ideas?

CheersReply
Re: Resize does not function (with Flash uploader) new!
by colin, 16 years, 7 months ago
First, this:
$u = new upload($_FILES['Filedata']['tmp_name])
should be:
$u = new upload($_FILES['Filedata'])
(beware of multiple uploads, check the FAQ if you upload several files at a time)

Also try to set no_script to false:
$u->no_script = false;

Do you use the 0.26RC1?Reply