Uploading files via the REST API

Ozgur Ozguven asked on December 5, 2014 10:48

I am writing a tool that will migrate content from an existing non-Kentico website into Kentico via the REST API. How can I upload the actual content of the file (the binary content) and associate it with the Media_File (Media.File) I create? Thanks..

Recent Answers


Brenden Kehren answered on December 5, 2014 13:22

Uploading a physical file to the file system wasn't supported in v7 via REST, I'm not sure if it is in v8 or not. You can upload to the database in v7-v8 but it will only store that binary data in the database.

1 votesVote for this answer Mark as a Correct answer

Martin Danko answered on December 6, 2014 10:54 (last edited on December 6, 2014 10:54)

Hello Ozgur,

Brenden is right, it's possible to upload file when you're storing it in the database but storing files to the file system is still not supported even in Kentico 8.1. I'm sorry.

Best regards, Martin

1 votesVote for this answer Mark as a Correct answer

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