I've come across an issue during a cron run where flashvideo attempts to import files from a folder. My files are uploaded via ftp to my site folder's file directory (sites/mysite.co.uk/files/video_import), but upon a cron run, I get a message like this in my log:

The selected file sites/mysite.co.uk/files/video_import/video-1.avi could not be uploaded, because the destination could not be found, or because its permissions do not allow the file to be written.

I found that it's caused by the file_munge_filename function, which renames the entire path, and not the filename (causing mysite.co.uk to become mysite.co_.uk), thereby causing the error.

The attached patch moves the munge command to affect only the filename.

Comments

wayfarer_boy’s picture

StatusFileSize
new4.09 KB

Aologies, the patch was ineffective, I didn't test it correctly. Here's a better one that does what it intended!

attheshow’s picture

Status: Needs review » Postponed (maintainer needs more info)

I haven't ever had the "directory being renamed" issue appear on any of my systems. Can anyone else duplicate this issue?

robin monks’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

This patch solved my import problems on multisite.