I've configured file attach for a video upload field so that I can FTP large video files to the server and then attach these via a field in a node, but no matter what I try in "file attach settings" for the field, the field never sees any files to attach, even though there are .MOV files in the relevant folders.

Ideally, to keep everything in the same place, I'd like the folder to be /public_html/sites/default/files/videos/original, but I've tried every way of configuring this AND trying different paths, but the field just constantly says "There currently are no files to attach".

For example:
"File attach path" = sites/default/files/videos/original
"File attach location" = "Absolute server path"
FTPd files into /public_html/sites/default/files/videos/original
No files found

The field settings help text says "The File attach path may be with the files directory (/home/mysite/public_html/sites/default/files/private)" so I also tried:
"File attach path" = videos/original
"File attach location" = "Within the files directory"
FTPd files into /public_html/sites/default/files/private/videos/original
No files found

Help.

Comments

awebmanager created an issue. See original summary.

chowdah’s picture

I would start by clearing all the cache.

awebmanager’s picture

Thanks, I've tried that... no difference.

slotid’s picture

Set allowed extensions for field.

awebmanager’s picture

@slotid Thanks, but this has been set. The field in the edit form says "Allowed file types: mp4 ogg avi mov wmv flv ogv webm."

quicksketch’s picture

Category: Bug report » Support request

I've checked that attach works correctly, and we've had lots of users commenting on other behaviors of the attach source, so it appears to work for most users. It may be file permission issue on your server. Whatever user the web server is using (e.g. www-data or apache) must be able to read AND execute the directory that contains the files. Try doing a chmod 755 videos and then chmod 755 videos/original within the files directory and see if that helps. If the web server doesn't have execute permissions on each directory (and all the parents of that directory), it can't get the file directory listing.

awebmanager’s picture

@quicksketch, thanks for the reply. My videos folder is already 755; the videos/original folder was 775 - I changed it to 755 but this didn't fix it. The video files themselves are variously 664 or 644, does that make any difference?

Chris Matthews’s picture

@awebmanager, I am having this same issue and did all the checks you performed (full cache clear, permissions of directories and files, etc). Did you happen to find a resolution? Note: I am on 7.x-1.11

TheoRichel’s picture

subscribe