FreewayTalk

2 replies to this thread. Most Recent

Jeremy Hughes

17 Sep 2020, 6:06 pm

Re: [Pro] Cleaning up website folder

Hi Mark,

The problem is that Freeway’s upload code fails to delete files if they have a space in the filename (“Covid-19 Info.pdf”).

What you could do in this case is to delete the file using a third-party FTP program. Freeway won’t try to delete it if it’s not there.

One way to avoid this situation in future would be to rename files so that spaces are replaced by an underscore or hyphen (“Covid-19_Info.pdf” or “Covid-19-Info.pdf”) or just remove the space (“Covid-19Info.pdf”).

Jeremy

On 17 Sep 2020, at 18:53, Mark Ballard via freewaytalk <[email protected]> wrote:

Hi Jeremy, I know you said just copy the line above the Rm line which is: Deleting Covid-19 Info.pdf

But here’s the whole log as I’m wondering if it’s actually caused by the line nearer the top that says

”* SSH public key authentication failed: Unable to open public key file”

  • Freeway Pro 7.1.4 (7070)
  • Uploading “St.Albans Osteopathy Sept 2020 - COVID2.freeway”
  • Thu, Sep 17, 2020, 6:48 PM
  • Connecting to home148191111.1and1-data.host

  • SSH public key authentication failed: Unable to open public key file Listing directory drwx—-r-t 5 4528838 600 4096 Jun 8 21:06 . drwx—-r-t 5 4528838 600 4096 Jun 8 21:06 .. drwxr-xr-x 3 0 0 4096 Sep 17 02:13 logs drwxr-xr-x 2 4528838 600 4096 Jun 8 21:06 Resources drwxr-xr-x 2 4528838 600 20 Jan 6 2010 css -rw-r—r— 1 4528838 600 42 May 11 14:47 _blank.gif -rw-r—r— 1 4528838 600 15947 Jun 8 21:06 aboutme.html -rw-r—r— 1 4528838 600 16212 Jun 8 21:06 firstconsultation.html -rw-r—r— 1 4528838 600 17282 May 11 14:47 links.html -rw-r—r— 1 4528838 600 15136 Jun 8 21:06 location.html -rw-r—r— 1 4528838 600 15228 May 11 14:47 osteopathy.html -rw-r—r— 1 4528838 600 15765 Jun 8 21:06 osteopathy2.html -rw-r—r— 1 4528838 600 1877 May 11 14:47 pngbehavior.htc -rw-r—r— 1 4528838 600 16948 Jun 8 21:06 fees.html -rw-r—r— 1 4528838 600 15382 May 11 15:38 contact.html -rw-r—r— 1 4528838 600 19790 Sep 16 17:50 index.html -rw——r— 1 4528838 600 149455 May 11 15:38 GDPR-Privacy-Notice.pdf -rw——r— 1 4528838 600 71402 Sep 16 17:50 Covid-19 Info.pdf Deleting Covid-19 Info.pdf Listing directory

  • rm command failed: No such file or directory *** Upload interrupted [-26042] ***

  • 0 files uploaded

  • 0 files deleted
  • 0 bytes transferred
  • Total time: 1.8 seconds

waltd

17 Sep 2020, 6:36 pm

Argh! This is a pet peeve of mine. URLs must not contain spaces. Any spaces anywhere immediately end the URL and begin a fragment of text following the URL. Browsers attempt to paper over this by converting the space to %20, and Web servers know to treat such a string as if it contained a space when looking in their own filesystem for the file to serve. But that’s a convention that’s grown around a mistake, not the actual way you’re supposed to do things.

It would be nice if Freeway would sanitize all the filenames it creates, so that spaces are replaced with dashes or underscores, regardless whether they are in folder or file names.

Walter

On Sep 17, 2020, at 2:06 PM, Jeremy Hughes <[email protected]> wrote:

Hi Mark,

The problem is that Freeway’s upload code fails to delete files if they have a space in the filename (“Covid-19 Info.pdf”).

What you could do in this case is to delete the file using a third-party FTP program. Freeway won’t try to delete it if it’s not there.

One way to avoid this situation in future would be to rename files so that spaces are replaced by an underscore or hyphen (“Covid-19_Info.pdf” or “Covid-19-Info.pdf”) or just remove the space (“Covid-19Info.pdf”).

Jeremy

On 17 Sep 2020, at 18:53, Mark Ballard via freewaytalk <[email protected]> wrote:

Hi Jeremy, I know you said just copy the line above the Rm line which is: Deleting Covid-19 Info.pdf

But here’s the whole log as I’m wondering if it’s actually caused by the line nearer the top that says

”* SSH public key authentication failed: Unable to open public key file”

  • Freeway Pro 7.1.4 (7070)
  • Uploading “St.Albans Osteopathy Sept 2020 - COVID2.freeway”
  • Thu, Sep 17, 2020, 6:48 PM
  • Connecting to home148191111.1and1-data.host

  • SSH public key authentication failed: Unable to open public key file Listing directory drwx—-r-t 5 4528838 600 4096 Jun 8 21:06 . drwx—-r-t 5 4528838 600 4096 Jun 8 21:06 .. drwxr-xr-x 3 0 0 4096 Sep 17 02:13 logs drwxr-xr-x 2 4528838 600 4096 Jun 8 21:06 Resources drwxr-xr-x 2 4528838 600 20 Jan 6 2010 css -rw-r—r— 1 4528838 600 42 May 11 14:47 _blank.gif -rw-r—r— 1 4528838 600 15947 Jun 8 21:06 aboutme.html -rw-r—r— 1 4528838 600 16212 Jun 8 21:06 firstconsultation.html -rw-r—r— 1 4528838 600 17282 May 11 14:47 links.html -rw-r—r— 1 4528838 600 15136 Jun 8 21:06 location.html -rw-r—r— 1 4528838 600 15228 May 11 14:47 osteopathy.html -rw-r—r— 1 4528838 600 15765 Jun 8 21:06 osteopathy2.html -rw-r—r— 1 4528838 600 1877 May 11 14:47 pngbehavior.htc -rw-r—r— 1 4528838 600 16948 Jun 8 21:06 fees.html -rw-r—r— 1 4528838 600 15382 May 11 15:38 contact.html -rw-r—r— 1 4528838 600 19790 Sep 16 17:50 index.html -rw——r— 1 4528838 600 149455 May 11 15:38 GDPR-Privacy-Notice.pdf -rw——r— 1 4528838 600 71402 Sep 16 17:50 Covid-19 Info.pdf Deleting Covid-19 Info.pdf Listing directory

  • rm command failed: No such file or directory *** Upload interrupted [-26042] ***

  • 0 files uploaded

  • 0 files deleted
  • 0 bytes transferred
  • Total time: 1.8 seconds

Freeway user since 1997

http://www.walterdavisstudio.com

Back to Top

Jeremy Hughes

23 Sep 2020, 8:15 am

It would be nice if Freeway would sanitize all the filenames it creates, so that spaces are replaced with dashes or underscores, regardless whether they are in folder or file names.

It would be nice!

Xway does this.

Jeremy