I use Private Uploads module to upload private content to the site, how can I use SWFTools and private uploads together?
The files are stored on http://www.mydomain.com/system/files/private/ but the xml script looks for them on http://www.mydomain.com/files/
Is there any way to change this path only for the xml scripts?
Thanks in advance.

Comments

Stuart Greenfield’s picture

Status: Active » Needs review

A fix for this issue is built in to a new 5.x-1.x-dev release and is ready for testing. The new package will be available when the packaging scripts next run.

SWF Tools should now support a private file system, including writing xml files that include private paths.

Note - switching from public to private system causes problems for playback at the moment and some more work is needed to make this transition possible. However, the private system should work ok for new content that is generated with private files already in effect.

Private file support is new to SWF Tools so needs some wider testing.

Stuart Greenfield’s picture

Status: Needs review » Fixed

Setting to fixed as new releases of SWF Tools 5.x-2.0 and SWF Tools 6.x-1.1 are now available which address this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

deltakid’s picture

Its such a pity but it seems not to work with the private_upload module which makes private uploads really useful. Even though the url is right I get the message that the file is not found. Any solution for this?

webel’s picture

Version: 5.x-1.1 » 6.x-2.5
Status: Closed (fixed) » Active

Reopening. 6.x-2.5 does not work with the Private Upload modules /system/files/private strategy for accessing the /sites/default/files/private folder
(which is .htaccess protected with "Deny from all").

I believe the maintainers have perhaps misunderstood the original request, confusing it with the private filesystem, whereas the Private Uploads module works with the public filesystem, but introduces a special masked private folder that can only be accessed through the pseudo-path /system/files/private which resolves to the physical, protected folder /sites/default/files/private.

If the SWF tools file path is rooted at /sites/default/files then [swf file="private/movie.flv" ..] fails; although the player loads ok, it just does not play, saying "Video not found" in, for example, JW Player (probably because of the .htaccess).

Giving the full URL with the pseudo-path http://www.example.com/system/files/private fails completely, the player will not even load.

The previous improvement to work with the private filesystem are likely very useful, however as far as I can tell there is still a need to support Private Uploads, which is a very useful and popular module.

webel’s picture

Initially reported for SWF Tools 6.x-2.5.

Definitely fixed for SWF Tool 6.x-3.0-beta5 (tested with FlowPlayer3 and JW Player 4). This works fine, where the testvideo.mp4 file has been uploaded as a private [upload] file attachment, and it works no matter whether the public file system (as recommended for Private Upload) or the private filesystem is used.

[swf file="/system/files/private/testvideo.mp4"]

This works as far as I can tell on all desktop/laptop browsers.


It might be your viewing device

It might not work on some mobile devices for other reasons. FlowPlayer 3 offers a Plugin for iPad supporthowever it does not work with private filesystems:

- Video in private file system not playing on iPad

- Video files stored privately will not serve up on iPad/iPod/iPhone

It has been suggested that Resumable Download can fix this, but I could not get videos to play on iPad when using Private Upload or Private Download.