File Upload by api

Mehrdad ilchizadeh asked on March 3, 2015 06:18

hello, I need custom webpart for new form for insert and edit my Custom Page type.. one field as Upload file i need api for asp control uploder and save in page type field..

Correct Answer

Virgil Carroll answered on March 3, 2015 07:06

You are right, sorry did not know that was a requirement. I would open that webpart in Visual Studio and do some reflecting on it. It should at least be able to show you how to go about the process.

The other thought would be to use the CMS Form Control in visual studio, load your own alternate form and bind to it in the form initialize code.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Virgil Carroll answered on March 3, 2015 06:36

Have you looked at the edit contribution webpart? Or group contribution webpart? These both allow a user to work with any page type, including add attachments, etc... If these don't fit your need, the code behind them should get you moving down the right path to build your own vi the API.

2 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on March 3, 2015 07:02

thank you but this web part not allow to customize show field for user... and i want show custom document of by Query

0 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on March 3, 2015 07:29

thank you

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.