Package migration and issue around changing file on server

Avatar

Avatar

david_garcia1

MVP

Avatar

david_garcia1

MVP

david_garcia1
MVP

25-03-2021

Hi all,

 

  1. Whilst doing file resources package migration, is there a way to automate the uploading/publishing of files on the new environment? currently I am having to import file resource package on new environment then manually upload the physical files... is this expected or am I missing something?
  2. On the other hand, say I have a css file called styling.css, I then decide to replace the server version by uploading the same styling.css which includes extra code; ACC skips the file as it already exists in server and doesnt overwrite or replace it, I am having to reupload the file under a different name, is this expected? or is something broken?

david_garcia1_0-1616697911827.png

 

 

file resources migration package

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

01-04-2021

Hi,

 

1. Yes, you have to make all the SOAP calls (iirc 3?) and the upload call to do each one. The calls can be captured with Fiddler or any web debugging proxy. You can also cheat and upload a zip file to Public resources then use execCommand() to unpack it, which is what I normally do since it's faster than figuring out the calls.

2. Sounds like a bug? File check should be on checksum, md5 in old builds sha in new ones. There's a checkbox in Public resources that controls this, 'Unique file name' in Advanced parameters, though prob not relevant here.

 

Thanks,

-Jon