Files: fix insert
This commit is contained in:
parent
8d62eb5fbf
commit
2e85d8a220
@ -553,13 +553,13 @@ namespace ASC.Api.Documents
|
|||||||
/// <param name="keepConvertStatus" visible="false">Keep status conversation after finishing</param>
|
/// <param name="keepConvertStatus" visible="false">Keep status conversation after finishing</param>
|
||||||
/// <category>Uploads</category>
|
/// <category>Uploads</category>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[Create("{folderId}/insert", DisableFormat = true)]
|
[Create("{folderId}/insert", order: int.MaxValue, DisableFormat = true)]
|
||||||
public FileWrapper<string> InsertFileFromBody(string folderId, [FromBody]InsertFileModel model)
|
public FileWrapper<string> InsertFileFromBody(string folderId, [FromBody]InsertFileModel model)
|
||||||
{
|
{
|
||||||
return InsertFile(folderId, model);
|
return InsertFile(folderId, model);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Create("{folderId}/insert", DisableFormat = true)]
|
[Create("{folderId}/insert", order: int.MaxValue, DisableFormat = true)]
|
||||||
[Consumes("application/x-www-form-urlencoded")]
|
[Consumes("application/x-www-form-urlencoded")]
|
||||||
public FileWrapper<string> InsertFileFromForm(string folderId, [FromForm]InsertFileModel model)
|
public FileWrapper<string> InsertFileFromForm(string folderId, [FromForm]InsertFileModel model)
|
||||||
{
|
{
|
||||||
@ -571,13 +571,14 @@ namespace ASC.Api.Documents
|
|||||||
return FilesControllerHelperString.InsertFile(folderId, model.File, model.Title, model.CreateNewIfExist, model.KeepConvertStatus);
|
return FilesControllerHelperString.InsertFile(folderId, model.File, model.Title, model.CreateNewIfExist, model.KeepConvertStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Create("{folderId:int}/insert")]
|
[Create("{folderId:int}/insert", order: int.MaxValue - 1)]
|
||||||
public FileWrapper<int> InsertFileFromBody(int folderId, [FromBody]InsertFileModel model)
|
public FileWrapper<int> InsertFileFromBody(int folderId, [FromBody]InsertFileModel model)
|
||||||
{
|
{
|
||||||
return InsertFile(folderId, model);
|
return InsertFile(folderId, model);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Create("{folderId:int}/insert")]
|
[Create("{folderId:int}/insert", order: int.MaxValue - 1)]
|
||||||
|
[Consumes("application/x-www-form-urlencoded")]
|
||||||
public FileWrapper<int> InsertFileFromForm(int folderId, [FromForm]InsertFileModel model)
|
public FileWrapper<int> InsertFileFromForm(int folderId, [FromForm]InsertFileModel model)
|
||||||
{
|
{
|
||||||
return InsertFile(folderId, model);
|
return InsertFile(folderId, model);
|
||||||
|
Loading…
Reference in New Issue
Block a user