Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

3 ways of uploading files in Document library... Is same method or

  Asked By: Chaim    Date: Sep 06    Category: Sharepoint    Views: 16598

Clarification for 3 ways of uploading files.

How sharepoint uploads the files in the below mentioned method?
1. Single file upload,
2. multiple file upload,
3. bulk upload under web folder.

I mean Is this all refers to the same function to upload the file or
different methods to upload the file?

I wanted this information because, I was doing performance tour in
sharepoint, came to know that, if I upload the testupload.doc through
1st method is taking more time than 2nd method after uploading the
same file.

I think 3rd method is not sure it is as same as copy in explorer.

Can anybody share the information that how these method executes to
upload file?



14 Answers Found

Answer #1    Answered By: Jennifer Jones     Answered On: Sep 06

AIUI, under the hood, they all use WebDAV, so I’m not sure it really matters.

Answer #2    Answered By: Annie Norris     Answered On: Sep 06

I could be wrong, but I thought the first two options are using Frontpage RPC instead of WebDAV.

Answer #3    Answered By: Chadd Hahn     Answered On: Sep 06

Perhaps I’m mistaken and I don’t have time  to look it up, but in the end, we’re always writing to a SQL database via some protocol and I’m reasonably sure that protocol is WebDAV since the web  folder client is little more than a scaled-down browser.

If someone has some different information, I’d be glad to be corrected and learn.

Answer #4    Answered By: Cheryl Kelley     Answered On: Sep 06

The web  folder definitely uses WebDAV but isn’t single  file upload/multiple file  upload using the FrontPage RPC?

Answer #5    Answered By: Kalyan Pujari     Answered On: Sep 06

But we have not completed got the solution. We need to
understand how the sharepoint  file upload  works. I tried uploading  a
22MB file  in the following 3 ways  and got 3 different results

1. Clicked on the 'Upload Document' link and uploaded single  22MB
Time taken => 11 min 57sec ; 10 min 32 sec; 9min 17sec (tested this
thrice and got 3 results)

2. Clicked on the 'Upload Document' link and clicked on 'upload
multiple files' ; selected this 22MB file and clicked 'Save and Close'
Time taken => 1 min 17 sec

3. Mapped the same sharepoint directory to the 'Network Places' and
copied the file to the mapped directory
Time Taken => 1 min 25sec

Need to investigate why Option 1 takes almost 9-10 times more than
option 2/3

Answer #6    Answered By: Jagdish Joshi     Answered On: Sep 06

Option 1 is using the standard http upload  built in to all browsers/servers.

Option 2 is a Microsoft Office ActiveX control

Option 3 is feature of the Windows client

My guess is that the Office/Windows solutions are optimized for performance.

Answer #7    Answered By: Shara Johnson     Answered On: Sep 06

Do you have any link or support document  says the office/windows
solutions are optimized?

Answer #8    Answered By: Christop Mcfadden     Answered On: Sep 06

In the absence of finding any real good architecture information  on how files
are uploaded to the SQL Database, a packet trace will likely be your best
solution to finding the differences between these methods.

Answer #9    Answered By: Cassidy Sharpe     Answered On: Sep 06

Just curious on your source for these distinctions. I’m not questioning the accuracy, necessarily, just curious. It is my understanding that no matter what method  is used, by the time  we write to the SQL database, we’re using WebDAV and it is WebDAV that slows things down.

Answer #10    Answered By: Damon Garner     Answered On: Sep 06

The single  file upload  has an <INPUT type=file> tag and the multiple file  upload has an <OBJECT> tag.

The third option runs on the client, and no self-respecting web  developer would ever look there.

I assume that upload.aspx (single file) performs the actual update using WebDAV, but it appears to me that the file is transferred to the server using standard http.

Answer #11    Answered By: Hans Weiss     Answered On: Sep 06

Option 1 is a http upload  supported by any web  browser, inherently slow

Option 2 and 3 used WebDav Windows XP Redirector, thus being faster.

Answer #12    Answered By: Alison West     Answered On: Sep 06

Bottom line is standard upload  of any web  browser is slow and not optimized. Multiple file  upload and windows explorer, user the WebDav redirector which has been optimized.

Answer #13    Answered By: Freddy Heath     Answered On: Sep 06

The only way for a web  browser to upload  a file  to a server is using the standard http upload mechanism which is slower than webdav.

Answer #14    Answered By: Joanna Dixon     Answered On: Sep 06

Netmon? What about Sniffer? Or even Ethereal?

I’d like to edit your previous comment to “Real geeks read what’s going on bit by bit, byte by byte, packet by packet, session by session…” Never mind that’s too long.