Question

Cannot access files after changing the attachment directory


Badge +2
  • Do Gooder (Customer)
  • 2 replies

We have recently moved our attachments directory to a new folder. We have set the APP Param in the FSM Smart Client to point to the new directory however when we open an existing attachment the Smart Client tries to look in the previous file path not the new one.

 

Does the file path need to be changed somewhere for all the attachments?


3 replies

Userlevel 6
Badge +14

Hi @pra3,

Did you move the existing attachments into new location?
You need to alter the file path in attachment table for all the existing records, because those were pointed to the older location.

New attachment records will be created with new path and saved in new location.

Userlevel 7
Badge +22

 Hi @pra3 ,

As @Anjula Priyanath mentioned, the old attachments are pointed towards the previous directory path. You may see this information if you query one of the old attachment ids in the sql query tool. The field attachment_path is not obviously updated. Based on this value, the server will look into the previous path for old attachments even though you have changed the directory path. Hence, you may need to update the paths for old attachments with new directory path.

Badge +2

Hi @pra3,

Did you move the existing attachments into new location?
You need to alter the file path in attachment table for all the existing records, because those were pointed to the older location.

New attachment records will be created with new path and saved in new location.

Yes the attachments themselves were copied into the new directory, in fact if we point DNS to divert the traffic from the old file path to the new file path then the attachments open.

 

New attachments are indeed created in the new attachments directory. They also open from the new directory.

 

As suggested we might have to update the file path for all the attachments in the database.

 

Thank you both for your swift response.

Reply