Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I use default config, and the plugin issue a error? #1

Open
darkread opened this issue Sep 19, 2017 · 0 comments
Open

I use default config, and the plugin issue a error? #1

darkread opened this issue Sep 19, 2017 · 0 comments

Comments

@darkread
Copy link

darkread commented Sep 19, 2017

I use the default config
When I press ctrl+shift+v to insert a image in md file, it worked, but
the plugin issue a error like this
"The Ftp config pasteImage.ftp* is invalid. please check your config."
My config like below, and I want to save picture in the subdir, and it do it right ,but it issue the error every time ,can you help me ?

  "pasteImageFtp.path": "${currentFileDir}",

  // The base path of image url.You can use variable ${currentFileDir} and ${projectRoot}. ${currentFileDir} will be replace by the path of directory that contain current editing file. ${projectRoot} will be replace by path of the project opened in vscode. If you set basePath to empty String, it will insert absolute path to file.
  "pasteImageFtp.basePath": "${currentFileDir}",

  // Force set the file separator styel to unix style. If set false, separator styel will follow the system style.
  "pasteImageFtp.forceUnixStyleSeparator": true,

  // The string prepend to the resolved image path before paste.
  "pasteImageFtp.prefix": "",

  // The string append to the resolved image path before paste.
  "pasteImageFtp.suffix": "",

  // ftp server address
  "pasteImageFtp.ftpHost": "",

  // ftp server username
  "pasteImageFtp.ftpUserName": "",

  // ftp server user password
  "pasteImageFtp.ftpUserPwd": "",

  // ftp server port
  "pasteImageFtp.ftpPort": 21,

  // ftp server file saved folder
  "pasteImageFtp.ftpFolder": "",

  // static web server for images
  "pasteImageFtp.staticSitePort": 80,

  // local images saved path
  "pasteImageFtp.localPath": "images",```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant