Developer forum

Forum » Dynamicweb 10 » Uploading files through CLI does not work

Uploading files through CLI does not work

Chris Søgaard
Chris Søgaard
Reply

Hi DW

It seems like we cannot upload files through CLI today. It worked las friday, but is not working now.

We are using this command

  • dw files -io "./Files/Integration/jobs/Import customers.xml" . --host {host} --apiKey {apiKey}

And we get this error

If we try to upload a folder with this command: 

  • dw files -io "./Files/Integration/jobs" --host {host} --apiKey {apiKey}

We get this error:

I can see CLI was updated yesterday could this have broken something?

BR Chris


Replies

 
Frederik Nielsen Dynamicweb Employee
Frederik Nielsen
Reply

Hi Chris,

Did you go from v1.0.8 to v1.0.9 since friday, or was the jump larger?

We made a change to allow wildcard in filenames for the latest version, and from what I can tell, that change should not have cause your issue, I could however reproduce your issue so I have fixed that and published it to 1.0.10 - please let me know if you continue to experience issues.

It should solve both importing files and folders.

 

Best regards,

Frederik Nielsen

 
Chris Søgaard
Chris Søgaard
Reply

Hi Frederik

We are not fetching a specific version in our deploy pipelines, but I don't have any evidence of what version was installed when that pipeline ran last friday, but it should have been newest.

We have tested the new version and it runs again.

Thank you for the quick response

BR Chris

 
Chris Søgaard
Chris Søgaard
Reply

Hi Frederik

We have another issue with the CLI, and maybe you can help.

It seems like we cannot upload files in the new version of the CLI if that files contains a "+" sign. This worked 8/8-2024.

Well, can't we just stop use files with this filename then. Maybe, but Swift uses it out-of-the-box, so this is what causing the problems. See this example, works if filename is renamed to be without the + sign

BR Chris

 
Frederik Nielsen Dynamicweb Employee
Frederik Nielsen
Reply

Hi Chris,

You're right, the change to allow wildcards did not escape the + in the filename anymore, I have fixed that with the latest version 1.0.11, please let me know if you face any other issues!

 

Best regards,

Frederik Nielsen

 
Chris Søgaard
Chris Søgaard
Reply

Hej Frederik

It works. Thank you

BR Chris

 

You must be logged in to post in the forum