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

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.