bestprotop / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

Integration with jquery filestyle plugin (code snippet) #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Here is a code snippet that will allow you to integrate the MultiFile plugin 
with the jQuery 
filestyle plugin.  The jQuery filestyle plugin replaces the standard "Browse" 
button with an image 
(which can of course, be customized).  You can also choose to hide the textbox 
that displays the 
full path to the chosen file (or if you're on Safari, it always reads "No file 
selected"). 

The jQuery filestyle plugin project is here: 
http://www.appelsiini.net/projects/filestyle

    // Save control to element
        $(slave).data('MultiFile', MultiFile);

         $(slave).filestyle({
             image: "images/choose-file.gif",
             imageheight : 22,
             imagewidth : 82,
             width : 80
         });

    };// MultiFile.addSlave
    // Bind a new element

Original issue reported on code.google.com by fitzpatr...@gmail.com on 14 Sep 2009 at 7:52

GoogleCodeExporter commented 9 years ago
I'm having a problem with this. I added the code snippet above to the MultiFile 
code,
when I go to upload the first item it shows my image correctly as it should, 
once the
first file is added to the list my image disappears and there is a small text 
input
box in place of it.

Original comment by JHKersch...@gmail.com on 12 Oct 2009 at 3:13

GoogleCodeExporter commented 9 years ago
Any updates on this? Anyone been able to get it working?

Original comment by tobe...@gmail.com on 28 Jan 2010 at 5:02

GoogleCodeExporter commented 9 years ago
far from elegant, I hardcoded the settings to avoid a problem and havn't got 
time to
fix it. Also, lost the text input box (which isnt exactly a problem and I kind 
of
like it...), see attached

Original comment by tobe...@gmail.com on 29 Jan 2010 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago
There is still an issue when you select same file twice. It recreates file 
upload and small text blog is visible

Original comment by Hed...@gmail.com on 15 Dec 2010 at 1:06

GoogleCodeExporter commented 9 years ago
The project has been dormant for over a year and many of the support requests 
have been resolved and/or are invalid. So we're going to archive them all, 
pending review.

If you're still having a problem with the plugin, please visit the project page 
and re-open the issue. We do apologize for any inconvenience this may cause, 
but please bear with us...  we'll be making improvements to the plugin and its 
documentation over the coming weeks.

Stay tuned; and thanks for your support!

The Fyneworks Team
http://twitter.com/fyneworks

Original comment by fyneworks on 26 Jan 2012 at 1:37