Jump to content

Customize AJAX FancyUpload


inquisitive

Recommended Posts

Did you look at his examples? http://digitarald.de/project/fancyupload/2-0/showcase/photoqueue/

 

Look at this part:

$('demo-browse-images').addEvent('click', function() {
swiffy.browse({'Images (*.jpg, *.jpeg, *.gif, *.png)': '*.jpg; *.jpeg; *.gif; *.png'});
return false;
});

 

So you would change to:

swiffy.browse({'Acrobat PDF (*.pdf)': '*.pdf'});

but using the name of your instantiated class, etc.

 

The first part 'Acrobat PDF (*.pdf)' is what is shown in the files dialog box and the last '*.pdf' is the actual filter to use that will only list pdf files to select to upload.

 

Hope that helps

Its really hard to tell what you did with invisible code (you didn't post any).  Anyway, Im off for the night.

 

-Did you include mootools

-Did you include the plugin

-Did you include all of the css

-Do you have code to post that shows what you are doing....

 

Its really hard to guess at this stuff....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.