While I am testing various Video module settings I want to keep the video files in the FTP source directory, so I can quickly remove a field and add it again. Currently, the original file is removed from the FTP source directory. I will attach a small patch that allows for this option.

CommentFileSizeAuthor
#1 1310878-1-ftp-copy.patch4.35 KBJorrit

Comments

Jorrit’s picture

Assigned: Jorrit » Unassigned
Status: Active » Needs review
StatusFileSize
new4.35 KB

The attached patch does the following things:

  • Add an option to the widget instance form to determine the copy or move preference:
    1. Always move the file (old default)
    2. Always copy the file
    3. Move by default, allow the user to change
    4. Copy by default, allow the user to change
  • In case option 3 or 4 is selected, there will be a checkbox below the file select box to toggle between moving or copying. In case of option 4, this checkbox will be checked by default.
MJD’s picture

I too have a requirement where a single video can be attached to multiple nodes... so if the video is removed from one I still need it to remain available for others... even if not attached to any nodes...

I had hoped that I could override the behaviour with Filefield Sources (http://drupal.org/project/filefield_sources) ...but that doesn't work...

If the above solution works that would be great or maybe Filefield Sources could be used in some way e.g. be made to work together

Anyway, I add my support to this request

MJD’s picture

I've just tried changing the widget from VideoFTP to Video & using Filefield Sources and that appears to work... no problems at this stage

Jorrit’s picture

I found out about FF Sources too, after I made this feature request. I was going to recommend FF Sources to you, as it already supports keeping the FTP files. You need to apply FF sources to the Uploadfield though, as you discovered. The FTP field erroneously reports that it supports FF sources. I have to fix that.

MJD’s picture

FF sources actually takes a copy & the copy gets deleted if removed thereby preserving the original...

agreed video upload and video widget is the combo I'm using

Jorrit’s picture

Status: Needs review » Fixed

Committed the fix to 6.x-4.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.