You are right, I had to move the files. Well now it works fine on
every browser except IE 6. The error returned is this:
"Error: 'FancyUpload2' is undefined". This error comes up because I
try to create an object of the FancyUpload2 class.
I looked through the files to try to figure out the problem, but I'm
not got with MooTools and I can't figure it out. Here is the code:
var FancyUpload2 = new Class({
Extends: Swiff.Uploader,
.............................................
}); This is inside FancyUploader2.js
and my instance is this:
var swiffy = new FancyUpload2($('demo-status'), $('demo-list'), {
'url': $('form-demo').action,
'fieldName': 'photoupload',
'path': $('S_URL_MAIN').value + '/js/FancyUpload/
Swiff.Uploader.swf',
'onLoad': function() {
$('demo-status').removeClass('hide');
$('demo-fallback').destroy();
}
});
The files are included, that's why it works on other browsers. Thanks
for helping me!
On Oct 9, 8:18 pm, rpflo <[EMAIL PROTECTED]> wrote:
> If I remember right the script on his page doesn't move the files
> anywhere, simply uploads them to temp directory and then trashes them
> (since he doesn't want everybody's images on his server).
>
> I think you've got to drop in a move_upload_file() into the php
> script.
>
> On Oct 8, 11:34 am, Cristisor <[EMAIL PROTECTED]> wrote:
>
> > I will try to do this, but tell me after I press the Upload button,
> > where are those images stored? When I press the submit button of the
> > page I try to get the files using $_FILES[‘Filedata’] but it is empty
> > and I wonder how do I send the files from my page to the server when I
> > press the Upload and not the submit button? Tell me do I have to
> > modify something inside the source script, is the problem because it
> > is writing in the log file and it should do something else? Thank you
> > for your help!