Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

ERROR: '553 Could not create file.' using ftp #27

Closed
jimschmit opened this issue Feb 18, 2018 · 3 comments
Closed

ERROR: '553 Could not create file.' using ftp #27

jimschmit opened this issue Feb 18, 2018 · 3 comments

Comments

@jimschmit
Copy link

Description

Hello, I try to upload files to an ftp server, but I always get this message:
Deploying file 'd:\edutec\projets\script\frontend\js\cms\app.js' to '/htdocs/js/cms (www2.script.lu)' ... [ERROR: '553 Could not create file.']
Using filezilla it works

###My config:

{
				"name": "www2.script.lu",
				"type": "ftp",
				"host": "script.hosting-restena.lu",
				"port": 21,
				"user": "****",
				"password": "******",
				"dir": "/htdocs/",
				"mappings": {
					"frontend/**": "/htdocs/",
					"frontend/.htaccess": "/htdocs/",
				}
			},
@mkloubert
Copy link
Owner

@jimschmit

Can you try this?:

{
				"name": "www2.script.lu",
				"type": "ftp",
				"host": "script.hosting-restena.lu",
				"port": 21,
				"user": "****",
				"password": "******",
				"dir": "/htdocs/",
				"mappings": {
					"frontend/**": "/"
				}
			},

The mapping directories are relative to your FTP folder, you have specified in dir.

As in your example, it would map all frontend files to /htdocs/htdocs.

@jimschmit
Copy link
Author

Thank you, this one worked. However, if I specify a directory in the mapping, that does not exists on the server, the plugin does not create it. It would be nice if the directory could be created if it doesn't exist.

"mappings": {
					"frontend/**": "/test",
					"frontend/.htaccess": "/test",
				}

Deploying file 'd:\edutec\projets\script\frontend\js\cms\test.txt' to '/test/js/cms (www2.script.lu)' ... [ERROR: '553 Could not create file.']

@mkloubert
Copy link
Owner

@jimschmit

Since version 0.52.0, the extension should be able to auto create non existing directories on a server now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants