inquisitive Posted September 19, 2008 Share Posted September 19, 2008 http://digitarald.de/project/fancyupload/1-0/#showcases .....this is the link for the ajax script.... All I am looking to do is change the upload type of file from an image to .pdf document... So if someone is willing to help please let me know ASAP Quote Link to comment Share on other sites More sharing options...
CroNiX Posted September 19, 2008 Share Posted September 19, 2008 Well, its very easy and Harold always extensively documents his code. Its in the very beginning fancyupload.js in the options. Quote Link to comment Share on other sites More sharing options...
inquisitive Posted September 19, 2008 Author Share Posted September 19, 2008 i have fancyupload2.js and I am not sure of the code to enable this...i need to kinda be held by the hand on this one Quote Link to comment Share on other sites More sharing options...
CroNiX Posted September 19, 2008 Share Posted September 19, 2008 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 Quote Link to comment Share on other sites More sharing options...
inquisitive Posted September 19, 2008 Author Share Posted September 19, 2008 thanks I will give it a test Quote Link to comment Share on other sites More sharing options...
inquisitive Posted September 19, 2008 Author Share Posted September 19, 2008 Ok I have set the line accordingly....Here is my issue. When i click the little browser text....it does nothing...also where are the images for the progress-bar... Quote Link to comment Share on other sites More sharing options...
CroNiX Posted September 19, 2008 Share Posted September 19, 2008 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.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.