swfupload_widget.js , line 128

'flash_url' => url($library['library path'] . '/Flash/swfupload.swf'),

causes that i have:

<object width="147" height="15" class="swfupload" data="/cs/sites/all/libraries/swfupload/Flash/swfupload.swf?preventswfcaching=1336817283518" type="application/x-shockwave-flash" id="SWFUpload_0">
  <param value="transparent" name="wmode">
  <param value="/cs/sites/all/libraries/swfupload/Flash/swfupload.swf?preventswfcaching=1336817283518" name="movie">
  ...
</object>

which is not found. if there is not /cs/ at beginning it works.

This:

'flash_url' => url($library['library path'] . '/Flash/swfupload.swf', array('language' => '')),

seems to be working. And please remove that "Flash" in path.

Comments

kmajzlik’s picture

same thing on next one line:

'upload_url' => url('swfupload', array('language' => '')),  // Relative to the SWF file

and now it seems working.

alexey.gorb’s picture

Status: Needs work » Needs review
StatusFileSize
new778 bytes

I think using file_create_url is a more appropriate way to get an absolute url.
'flash_url' => file_create_url($library['library path'] . '/Flash/swfupload.swf'),
Though, it is ok to use url() for the uplaod_url parameter, because it is an ajax callback url and will work both ways (prefixed or not)
The patch is also attached.

gumanist’s picture

Status: Needs review » Reviewed & tested by the community

Works fine for me, thanks.
Seems should be RTBC