Migration of Attachment Files

Andre Pfanz asked on October 5, 2017 20:50

We have a server running Kentico v8 that we are going to upgrade. It has attachments located on S3 and has the "Store files in file system" and "Store files in database" checkboxes checked in the Configuration->Settings->System->Files application.

I copied the site files and database to another server and upgraded that to version 10.0.38. The old and new server both have their own S3 endpoints.

The issue I'm facing is references to attachment files are resulting in 404 errors on the new server running v10. My question is how do I migrate the attachment files from the old server to the new one?

Correct Answer

Andre Pfanz answered on October 9, 2017 17:40

I discovered the issue was this key was missing in web.config(the upgrade must have removed it):

runAllManagedModulesForAllRequests="true"
0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on October 5, 2017 21:16

You can go to System>Files>Attachments and see which ones are stored in the file system and which ones aren't. There you can then copy them one way or the other. Most likely why you're receiving 404's.

Also, do you have the S3 provider setup or were you doing some other storage method with this instance? Could be your links are referencing the S3 storage link vs. a relative path.

0 votesVote for this answer Mark as a Correct answer

Andre Pfanz answered on October 5, 2017 21:36

Thanks Brenden for the response.

I see several of the attachments are stored on the old server in both the file system and database. How do I determine the path of where they are stored on the file system? If I click on one of the attachment files in System->Files->Attachments, I get this URL:

https://www.paalpstage.com/CMSPages/GetFile.aspx?guid=9300318c-04d0-4a18-8fd7-b898d5e35642

This doesn't tell me where on the file system to find the file.

0 votesVote for this answer Mark as a Correct answer

Zachary Perry answered on October 6, 2017 19:18

IF you go settings > System > Files there is a field files folder, that should give you the location the files are stored.

0 votesVote for this answer Mark as a Correct answer

Andre Pfanz answered on October 6, 2017 19:24

IF you go settings > System > Files there is a field files folder, that should give you the location the files are stored.

I looked at that but found the field is blank.

0 votesVote for this answer Mark as a Correct answer

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