Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to upload a document in Worksite?
Raj77
Hi,
I would like to upload a document to worksite from my client machine directly. What are all the possible ways I can upload a document & which is good?
1) Is this a good approach to use workspace.upload() method to upload a file directly?
or
2) Can we convert the file as document object and as usual we can update the document into worksite?
Thanks
Find more posts tagged with
Comments
Nicholas
Probably you are looking for
this
.
Let me know if something else?
Thanks Nicholas
Raj77
Hi Nichols,
I'm not able to understand what you are trying to do in that sample program? What will be the input to that program and how are you uploading a file to worksite in that sample program attached. Could you pls explain in detail. If you have any other sample program pls send it across to me.
Thanks in advance.
-Raja.
Nicholas
Actually I suggested a way to upload the local file to worksite mp using our own approach. You could use any code for uploading, If you have other easy way to do that.
Thanks Nicholas
udhya
using Bulk uploader to upload the document directly to worksite mp
i think this is easy way to upload bulk document
thanks udhy
sesenaro
You can use, as well, Bulkloader command line, then you have to create a XML document where you specify what, where and how are you going to upload documents. Afterwards you can use that xml and run it with an script from your server every time that you need or set it up for running automatically.
Puneet303
public static String fileName=" ";
get the folder ,workspace,facility by specifying the SID's
Document document = folder.createDocument();
File file = new File(fileName);
Version version = document.setInitialVersion(file);
String fileName = file.getName();
document.setName(docName);
you can also get the application format of the file you can upload then.