FancyUpload 2

73 views
Skip to first unread message

Cristisor

unread,
Oct 6, 2008, 7:50:23 AM10/6/08
to MooTools Users
Hello. I'm trying to make the FancyUpload 2 work on my website but I'm
new to Web and I can't figure it out. So I downloaded the files from
http://digitarald.de/project/fancyupload/, I copied the HTML, JS and
PHP from the website but when I press the submit button in PHP the
$_FILES[‘Filedata’] array is empty. I modified some things acording to
my needs, but I can't understand what is happening. So my question is:
where should I look to see if the form sends the files to PHP, so I
can process them, because now they are only saved in the log file?
Thank you!

electronbender

unread,
Oct 8, 2008, 7:29:02 AM10/8/08
to MooTools Users
Can you setup a live test so we can have a looksie?

On Oct 6, 1:50 pm, Cristisor <cristisor...@gmail.com> wrote:
> Hello. I'm trying to make the FancyUpload 2 work on my website but I'm
> new to Web and I can't figure it out. So I downloaded the files fromhttp://digitarald.de/project/fancyupload/, I copied the HTML, JS and

Cristisor

unread,
Oct 8, 2008, 1:34:43 PM10/8/08
to MooTools Users
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!

rpflo

unread,
Oct 9, 2008, 1:18:42 PM10/9/08
to MooTools Users
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.

Cristisor

unread,
Oct 10, 2008, 3:18:10 PM10/10/08
to MooTools Users
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!
Reply all
Reply to author
Forward
0 new messages