Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

File Upload in SharePoint

  Asked By: Gaurang    Date: Dec 01    Category: Sharepoint    Views: 1146

I want to implement 'File Upload' functionality in my custom web part.
The files uploaded from local disks will be saved in the database.
Normal file upload for ASP.NET is working fine. In sharepoint, the same
code is not working. I am using an external html file as embedded
resource and read it in the RenderWebPart method. When I typed this
statement "<form id='' name='' enctype='multipart/form-data'>...</form>"
the upload button itself is not working. Can anyone redirect me to the
site where I can find some proper working code. Or if possible, send
some source code and detail instructions regarding it.



2 Answers Found

Answer #1    Answered By: Mary Adams     Answered On: Dec 01

Why don't you just create a library and use the built-in upload  functionality?

Answer #2    Answered By: Kundan Jambhale     Answered On: Dec 01

Uploading a file  to sharepoint  document library is
partially succesful for me. In my case only the files  within the webserver's
reference area ie., inetpub\wwwroot\... are getting uploaded. And the file
properties are lost. Like for html  files, an unrecognized form of file comes.
When the file is opened, the matter doesn't show or vague output comes. Can you
help me in this matter? How to generlize so that files from any hard drives can
be uploaded  also?

Didn't find what you were looking for? Find more on File Upload in SharePoint Or get search suggestion and latest updates.