Multiple File Uploading App
Hi Team,
Need a code to upload multiple files to document library using rest .Need an app
Regards:
Eswar
Eswar Chand Teki
Hi Eswar,
i belive you are looking for a code snippet to upload files using rest/client side, which can be used in your app. Go through the below link
http://blogs.msdn.com/b/uksharepoint/archive/2013/04/20/uploading-files-using-the-rest-api-and-client-side-techniques.aspx
http://dlr2008.wordpress.com/2013/10/31/sharepoint-2013-rest-api-the-c-connection-part-1-using-system-net-http-httpclient/
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/246900ff-91f2-4e2c-bdba-8c2c386b7e1c/how-to-upload-document-in-sharepoint-document-library-through-c-using-rest-api?forum=sharepointdevelopment
http://msdn.microsoft.com/en-us/library/office/dn292553.aspx
http://www.shillier.com/archive/2013/11/11/uploading-files-to-sharepoint-2013-from-a-remote-web.aspx
Raghavendra Shanbhag | Blog: www.SharePointColumn.com
Please click "Propose As Answer " if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
Disclaimer: This posting is provided "AS IS" with no warranties.
Similar Messages
-
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
RajaHuh?
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 advanceHi,
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 -
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,
SuryaI 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.
Thanksany 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,
MonicaHi
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 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. :)
-
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/ -
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
LaurenceHi 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 -
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"
-
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. :)
-
Multiple file uploads, or only one at a time?
I have multiple files in folders on my iPad. I want to upload entire folders of documents. So far I have only been able to upload one document at a time. Then after uploading, I have to put them in acrobat.com folders one document at a time. It is very time consuming. Is there any way to upload multiple files at one time? Once the documents are uploaded, is it possible to move multiple documents into a folder at one time? Or does each document have to be a separate upload action, and each move into folder a separate document-by-document one at a time?
On my iPad I have been opening and saving pdf's in Adobe Reader. I would like to upload these pdf files from the iPad Adobe Reader to acrobat.com. I have thus far been uploading them from the iPad one fie at a time. It is very slow and tedious. There is also no way to get multiple pdf files from the iPad Adobe Reader to a computer except one file at a time. So it seems that once I used the iPad Adobe Reader app to save the files, I am stuck with one file at a time movement. I did, however, find that once I get files to acrobat.com, I can move multiples files at a time into folders on acrobat.com via the iPad. The problem is getting them uploaded from the iPad Adobe Reader app to acrobat.com. Is there a solution I'm missing, or am I correct in my understanding of the iPad Adobe Reader app upload situation?
Maybe you are looking for
-
My iMovie no longer works "PowerPC applications no longer supported"
My iMovie (v. 9.09) no longer works on my MacBook pro with osx 10.7.5, when I try to open the app I get the message "PowerPC applications no longer supported". I tried upgrading, but the mac store says I need osx 10.9 to upgrade. help!
-
How can I update my Safari 5.1.10 without updating my OS 10.6.8 to Yosemite?
-
Please help - french accents not correctly displaying/storing in database
Hello - I have 2 databases running in 2 different character sets. I am able to insert the following french accents in both databases and stored correctly also in db and displayed correctly in sql plus - à À Ä ä Â â é É È è Ë ë Ê ê î Î ï Ï ç Ç Û û ô æ
-
Which tech is for validate xml to specific xml schema at runtime
I got a request. we have input xml, we have the xml schema. we need to validate xml and see if it follows the schema at run time. which tech is good and pupolar for this request in the market Thanks. Jack Tie
-
Hi! When i try to import articles with sidecar (v32 / indesign CC2014) i always get the error-message: Error in the content generation. The file could not be opened. Confirm that the file can be opened in the current version of InDesign . It doesn't