Multiple File Upload Applet

I am attempting to code a JavaBean wrapped by an applet that will upload multiple files to a web server via the multipart/form-data mime-type.
I have moved a number of files to the web server with limited success.
I cannot move more than roughly 30Mbs of files in any configuration without causing a fatal exception.
I am confident that it is a limitation of the client's VM and the memory allocated to the applet.
I have seen several commercial grade applets that claim they can move any number of files even totalling 180Mbs.
My applet is very simple. It opens a JFileChooser dialog box, allowing the user to select multiple files and communicates directly to a server side component that accepts multipart/form-data.
I am navigating the protocol just fine. It seems to be a memory problem on the client side. Does anyone know how I can defeat this restriction and pass a reasonably high number of files (100-200) ranging from 50Mbs to 180+Mbs?
Secondly, why does this happen: when I put my files onto the output stream, no files move accros the stream until I call .close(). How can I write the code to begin transferring bytes as soon as I call outputstream.write(xxx)?

i am also developing multiple file upload applet and i transferred 1,4gb of data (2 files a 700MB) successfully.
also, i just transferred a few hundred files with total size of 900mb to my localhost webserver (~5000kb/s)
1) open file
2) read a few kilobytes into buffer
3) send them to the server
4) flush the outputstream (!!)
5) clear buffer and goto 2)
6) if end-of-file, close the file and flush again.
the outputstream is flushed every few kilobytes, so it will be sent over the socket to the server and not buffered until dawn.
i don't know how the server-side is working, but i used apache/php script.
you can try out my applet under
http://www.haller-systemservice.net/jupload/

Similar Messages

  • Upload Friendly (Multiple File Upload Applet)

    Title : Upload Friendly (Multiple File Upload Applet)
    Description : UploadFriendly is an easy to use Java Applet that will allow multiple file
    uploads on a web server in a web page. The control supports file filtering, limits and more.
    Samples available in the following languages: ASP, ASP.NET, PHP, Coldfusion and JSP
    Link: http://www.uploadfriendly.com/
    Type: Commercial (30 days Trial)

    Hi shiil,
    To move the documents between site collection, content organizer rules would be a recommended method, you can activate Content Organizer features to enable content organizer rules on the site, to root the document to another site collection.
    Also, for this issue, as Prasath suggested, you can check out the document in the ItemAdded event, then add ItemCheckedout event, in the ItemCheckedout event, delete the document. Or as content organizer rule does, you can create your own timer job to move
    the document.
    More information, Content Organizer Feature Overview for SharePoint Server 2010 Developers (ECM):
    http://msdn.microsoft.com/en-us/library/office/ee558288(v=office.14).aspx
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Applet for multiple file upload

    Hi All
    I have a requirement for multiple file upload where user can select multiple files as well as folders.
    Would appreciate any pointers.
    Thanks.

    Google "java file upload"

  • Multiple File uploads Hotmail Style

    Hi all,
    I have been trying to do multiple file uploads in the hotmail style, i.e. to store all the filenames in a list one by one and uploading all files all at once. What I couldn't understand is the part on how hotmail stores each filename in a list and refreshes the page. I have tried doing a javascript->applet communication but it's just not the same. I apologize if this is not the right forum for this question. Can anyone please help me out? Thanks.

    Thanks but I am actually looking at doing some form of manipulation on the files in the list, i.e. get all the filenames from the list and produce outputs to be saved on the server and call the applet. Therefore, I will need to understand the minor details of how hotmail does it. I really appreciate your help anyway. Cheers. :)

  • Single & Multiple file uploads

    Hi,
    I have an application that combines sngle & multiple file
    uploads. In some cases I want to allow users to upload several
    files. In others, when I know the files may be large -i.e., audio
    or video files- I want to restrict their uploads to only 1 file. I
    want to know if it is possible to have both things workging
    together.
    My application works if I only do one or the other. If I try
    to switch from Multiple to single uploads, or vice versa, I get
    this error:
    Error: Error #2041: Only one file browsing session may be
    performed at a time.
    How can I close/delete/eliminate any previously opened
    browsing session?
    Thanks so much.

    Thanks but I am actually looking at doing some form of manipulation on the files in the list, i.e. get all the filenames from the list and produce outputs to be saved on the server and call the applet. Therefore, I will need to understand the minor details of how hotmail does it. I really appreciate your help anyway. Cheers. :)

  • File Upload applet not opening in Query Mode

    File Upload Applet is opening in Query Mode in Siebel 7.5, where as in Siebel 7.8 its not opening in Query Mode.
    Should anything be changed in CFG? or siebel restricted this?

    Hi,
    There is a property called "Auto Query Mode" in the applet. Check whether this has been set to "New Query" in 7.5. If so the applet will be opening in Query Mode automatically. If this property is blank, in 7.8, the applet will not be opening in Query mode. Check and let me know.
    Regards,
    Joseph

  • How to add a field for multiple file upload in WebApps ?

    I am creating a WebApp for user to save some information with multiple pitcures. I can only see a single uploader.
    How can I add multiple image uploader and How can I create a custom file upload field rather than image upload ?

    Hi,
    There's no other upload field type for web apps.  You'll need to use the "image file type" to apply multiple file upload fields within the web app form in this case.
    Kind regards,
    -Sidney

  • Could not find multiple file upload in Jdeveloper 11.1.2.3

    Hi,
    I am using Jdeveloper 11.1.2.3, I am trying to use the multiple file upload feature but I could do not find (Rows) propriety in Input file component. so, what I am missing? is there some extra library need to be add to the application?

    Hi,
    its a feature of 12c
    Frank

  • Multiple file upload not working in IE10 and IE11

    Hi,
    As per the UI5 documentation( https://sapui5.hana.ondemand.com/sdk/#test-resources/sap/ui/commons/demokit/FileUploader.html) , UI5 supports multiple file uploading for IE10 and IE11. I set the "multiple: true" flag in the fileuploader example page and the file browser dialog is not allowing to select multiple files. Does UI5 provide multi file upload support for IE10 and IE11 or am i missing anything ?
    regards
    Raja

    Huh?
    Your problem makes no sense. The filename is included with the upload so that the server knows what the file was originally called. Are you running the JSP locally and reading the file directly off the hard drive??
    I note also that you aren't using a multipart form, which is required to upload a file.
    <form action="uploadFile.jsp" method="post" enctype="multipart/form-data">
      <input type="file" name="upload" value="<%= fileName %>" />
    </form>You'll need to use the Jakarta Commons FileUpload class to correctly process a form encoded with "multipart/form-data" or getParameter("xxx") will return null. You can also use the older com.oreilly.servlet.MultipartForm or whatever it's called. I'm pretty certain that the Jakarta Commons obsoletes all the COS classes.
    Brian

  • Multiple File Upload With Metadata Using REST

    hi all
    I want to upload multiple files with metadata to document library using REST API. I am using this msdn article
    http://msdn.microsoft.com/en-us/library/office/dn769086(v=office.15).aspx for uploading file. I am able to upload single file to document library but it is not working for multiple file. when I select multiple file it is uploading last selected file. can
    anyone help with this. I am using office 365 environment.
    Thanks in advance

    Hi,
    According to your post, my understanding is that you wanted to use the REST to upload multiple files.
    Per my knowledge, the REST API is not supported for uploading multiple files via a single call.
    You can write your own loop to upload multiple files via an individual call.
    http://sharepoint.stackexchange.com/questions/108525/multiple-file-upload-with-metadata-using-rest/108532#108532
    More reference:
    http://sharepointfieldnotes.blogspot.com/2014/04/uploading-documents-and-setting.html
    http://www.shillier.com/archive/2013/03/26/uploading-files-in-sharepoint-2013-using-csom-and-rest.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Multiple file upload

    I need to upload multiple files from my system in ADF application, but "inputFile" component allows only one file. is it possible implement a multiple file upload similar to gmail file attachements?. Any help/pointers are appreciated.
    Thanks,
    Surya

    I can think of a solution using ADF
    One thing you can do is to have a managed bean has List<UploadedFile> files
    And you can generate your inputFile to use valueChangeListener and ofcourse don't forget the auto submit to be true, and once you submit a value, you can add it to the uploadedFile "files" list.
    The only problem you may have is that when a user try to update an existing uploaded file, I believe this may require tweaking so instead of having List<UploadedFile> you can have a Hashtabl<UIComponent,UploadedFile> to make sure you map things correctly!
    I'll try it and let you know the results
    Edited by: agawish on Mar 6, 2012 11:28 PM

  • Declarative Component : UploadedFile Isssue for multiple file Upload case.

    Hi,
    I have made one declarative component for the multiple file upload case; where i have add button that dynamically adds af:inputFile component to the popup dialog and similarly delete button to dynamically delete the selected inputFile component. Everything work fine such as:
    1. add button adds the inputfile component properly and delete does the same.
    2. upload of Multiple files also works fine. ( I keep the uploadedFile in the java.util.Map which is the pageFlowScope and once, Dialog box ok/cancel is clicked, i clear everything back).
    IT WORKS GREAT WHEN:
    User hit 5 times add button if they want to upload 5 images. and do upload for all the 5 inputFile components . (Add or Delete button should not be clicked after any upload , but before you can.)..
    THE ONLY PROBLEM IS WHEN:
    1. user uploaded; say 2 images but not yet clicked in the ok/cancel button yet... they are still in the upload dialog ..and hit ADD button again.
    2. After that user uploads say another file/image and now UploadedFile's getInputStream() returns null, length becomes 0 for all the other uploadedFile except this newly uploaded file.
    Now, here is the thing, i wrote my own customUplodedFile class which is just a wrapper and it return getInputStream() from this class and length from this class and it is working.... But i am not sure why does the uploadedFile loses it's value...
    import org.apache.myfaces.trinidad.model.UploadedFile;
    public interface ICustomUploadedFile
      extends Serializable, UploadedFile
      public String getFilename();
      public String getContentType();
      public long getLength();
      public Object getOpaqueData();
      public InputStream getInputStream();
      public void dispose();
    ====================
    public class CustomUploadedFile
      implements ICustomUploadedFile, Serializable
      private transient UploadedFile mUploadedFile;
      private transient InputStream mInputStream;
      private long mLength;
      public CustomUploadedFile()
      public CustomUploadedFile(UploadedFile pUploadedFile)
        this.mUploadedFile = pUploadedFile;
        this.mLength = pUploadedFile.getLength();
        try
          this.mInputStream = pUploadedFile.getInputStream();
        catch (IOException e)
          e.printStackTrace();
      public String getFilename()
        return mUploadedFile.getFilename();
      public String getContentType()
        return mUploadedFile.getContentType();
      public long getLength()
        return mLength;
      public Object getOpaqueData()
        return mUploadedFile.getOpaqueData();
      public InputStream getInputStream()
        return mInputStream;
      public void dispose()
        mUploadedFile.dispose();
    } Now, my questions are:
    1. Is there a way i could follow to not to lose the UploadedFiles's inputStream and length by not using my wrapper class but in a standard way/best way.
    2. I am not happy although it works because it is not making sense to me at all.....Why does the wrapper working though when i have transient variables; like UploadedFiles... and it's transient variables are lost why not mine.
    I am totally confused at this stage.. Need your help.
    Thanks

    any one??

  • Multiple file upload in SharePoint 2013 using AjaxFileUpload

    Hi all,
    I want to add multiple files using file upload control in our visual web part SharePoint 2013. I tried to use AjaxFileUpload (from Ajaxcontrol toolkit) in my visual web part and also added the handler in web.config as described in article (http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ajaxFileUpload/ajaxFileUpload.aspx).
    But, it’s not even opening the browse dialog box.
    I also tried to see if any third party control is available to achieve multiple file upload in SharePoint 2013 Visual web part, but without any success.
    Please help.
    Regards,
    Monica

    Hi
    Try to add the dll files of Ajax Control Toolkit in the
    Bin folder of your SharePoint Web Application (IIS Site)
    Hope that help
    Ahmed Naji SharePoint Geek
    MCP|MCTS|MCPD
    My English SharePoint Blog | DotnetFinder My Arabic SharePoint Blog|
    CodeReloaded
    My Gallery Contributions
    SharePoint 2010 Twitter Web Part
    SharePoint 2010 Custom Timer Job

  • Multiple File Upload - Database

    Hi
    I have tried and I can't work it out. I have a insert record function which enters the data into the database. I have the filepath set to a file field. If I add an "Upload File" function from ADDT it uses the file field to upload the PDF and also adds the file path to the database.
    How do I get the 'Multiple File Upload" to upload the files when I click "Insert Record".
    'Multiple File Upload" adds an upload link which seems to be separate from the 'Insert Form"
    I hope this makes sense to someone
    Cheers
    Laurence

    Hi Laurence,
    'Multiple File Upload" adds an upload link which seems to be separate from the 'Insert Form"
    that´s true, and that´s also the reason why multiple file or image upload triggers IMHO should rather be attached to an "update record" form -- because here´s where the respective record´s primary key has already been stored and can be used as part of the upload transaction
    (e.g. to create a folder named after the primary key), what would be questionable when applied to an insert record form.
    I´m personally always using single file upload with ADDT´s Insert Record forms and relocate the multi upload stuff to Update Record forms -- also as a sort of "safety measure", because one never really knows if e.g. the filesize sum of all uploaded files will or will not exceed the server´s "upload_max_filesize" value and hence might possibly break the upload procedure.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • File upload applet recommendations

    Greetings,
    We are building a large-scale extranet that will heavily
    involve user uploads of various files, including potentially large
    videos. In the past we've just used file fields and handled the
    stream with cffile and cfftp. However, we are thinking that we need
    a java applet for two reasons:
    1. to allow multiple files at once (this is not critical)
    2. to be able to check file size on the client (this would be
    extremely helpful), and stop the upload if it's too large.
    At launch, users will all be on Macs and Firefox--however, as
    things do this could always change; it is assured though that we
    will never be able to specify all-windows, so I assume that activex
    is "right out". As with any of our assumptions, please set us
    straight!
    Once any files are uploaded, we will need to database the
    file information (it will be placed into a kind of cms), so it's
    going to have to be more than "dump into a folder". Ideally the
    applet could "hand off" to a CF process that would do this; I
    suppose that we could also set up a kind of listener for the upload
    directory but this seems less then ideal. Again, ideas on how this
    might work would be welcome.
    Related to the process: we've used various image-manipulation
    server-side programs with CF, but don't know of any for video.
    Anything that might be able to manipulate video we'd love to hear
    about, even if it's some monster server/package.
    Thanks,
    Rick

    Hi,
    There is a property called "Auto Query Mode" in the applet. Check whether this has been set to "New Query" in 7.5. If so the applet will be opening in Query Mode automatically. If this property is blank, in 7.8, the applet will not be opening in Query mode. Check and let me know.
    Regards,
    Joseph

Maybe you are looking for

  • Messed up my I Tunes, need some help with fixing it, details in first post.

    Okay, so I was doing some maintence on my computer, organising files, etc. and i accidentally moved a file labled itunes onto my desktop, which caused all my songs in my itunes to go away, i put the file back, and all the song titles are there now, b

  • ISight audio and Skype

    I regularly use my isight with no problems, however whenever I audio chat using Skype and my isight's inbuilt mic I loose audio after about 15 minutes of chatting. It has happened a number of times now, does anyone else have this issue ?? Any know fi

  • How to change quality in movie

    guys i was wondering how u change the quality of a movie which i see in sooo many games using a simple on(press){ function. can someone please tell me the code u need to use to change the quality using a button? much appreciated

  • Space issue with comn top & ora  top

    I have a partition which is 96% full. It has comn top and ora top. I want to know is there some files which i may delete? i came across a directory $COMMON_TOP/temp which has files like->OFVAAndaOpC.t I want to know what is the use of these files and

  • About conversion rule in BD79

    Dear experts, I would like to fall back on your help on the conversion rule in BD79. In our system, there is a HTTP connection used for sending IDoc to the website. The Unit of measurement need be converted when sending out to the receiver side. The