Hi Sajith, Thank you for the guide. So we can add multiple files upload from this stream.
Regards. *M. Nifras Ismail* [image: LinkedIn] <http://lk.linkedin.com/pub/nifras-ismail/54/343/94b> On Fri, Sep 18, 2015 at 12:32 AM, Sajith Ariyarathna <[email protected]> wrote: > Hi Nifras, > > request.getFile("myFile") does not represent a physical file, rather it > represent a stream to the uploaded file. Hence you cannot "move" it using > .move("...") function. If you want to save the uploaded file, then use > the following code snippet. > > var uploadedFile = request.getFile("myFile"); > var savedFile = new File("/path/to/save/location/" + > uploadedFile.getName()); > savedFile.open('w'); > savedFile.write(uploadedFile.getStream()); > savedFile.close(); > > > Thanks. > > On Thu, Sep 10, 2015 at 2:41 PM, NIFRAS ISMAIL <[email protected]> > wrote: > >> Hi All, >> Do we upload images to the server directly using Jaggery JS? >> http://stackoverflow.com/a/32497617/2672566 >> >> Regards. >> *M. Nifras Ismail* >> [image: LinkedIn] <http://lk.linkedin.com/pub/nifras-ismail/54/343/94b> >> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Sajith Ariyarathna > Software Engineer; WSO2, Inc.; http://wso2.com/ > mobile: +94 77 6602284, +94 71 3951048 >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
