• I get the following error message when I use import multiple files, when the file name has a space in it.
    Clicking on the file on the PC shows the image with no problem.

    Found 1 image in Grants And Workshop Opportunities. Importing… Could not find the right path to Grants ( tried /homepages/28/d89642000/htdocs/clickandbuilds/private/html-files-to-import/images/Grants ). It could not be imported. Please upload it manually.

    Thoughts?

    https://www.ads-software.com/plugins/import-html-pages/

Viewing 1 replies (of 1 total)
  • Thread Starter rweil55

    (@rweil55)

    Stephanie

    Since I have “well formatted” HTML i.e. All my IMG SRC attributes are quoted, I can make this work be removing the space from regular expression at line # 790.
    This
    preg_match_all( '/<img[^>]* src=[\'" ]?([^>\'" ]+)/i',
    Becomes this
    preg_match_all( '/<img[^>]* src=[\'"]?([^>\'" ]+)/i',

    To do it right, would take multiple steps, first finding the src=… and determining of there are quotes or not and then handle the two cases differently.

    Roy

Viewing 1 replies (of 1 total)
  • The topic ‘problems with space in filename and images’ is closed to new replies.