Just installed this tonight -- the latest dev version. Double, triple, and quadruple checked all my file paths, and they are correct, but the status log says:

SWFUpload Missing files
You must install the minimalistic SWFUpload library to modules/swfupload/swfupload.

CommentFileSizeAuthor
#4 misfiles.jpg110.41 KBmikey081
#3 swfupload.module.paths_.patch1.32 KBrobloach

Comments

mikey081’s picture

Version: 5.x-1.x-dev » 5.x-1.1

Second that, I had the same thing happen to me (only difference was that I installed the official release 1.1)

On a positive note, when running php.update, I finally got a message saying "UPDATE {system} SET weight='10' WHERE name='swfupload' AND type='module'" , in reference to http://drupal.org/node/173401, so the coding is going in the right direction!

Probably just some simple path in the module to correct, but I certainly don't have the skills to find it.

Great work and can't wait til I can get this to work!

Mikey

robloach’s picture

You should have SWFUpload.js and SWFUpload.swf stored in the modules/swfupload/swfupload directory. So you'd have:

modules/swfupload/swfupload/SWFUpload.js
modules/swfupload/swfupload/SWFUpload.swf

$path = drupal_get_path('module', 'swfupload') .'/swfupload';
if (!file_exists($path .'/swfupload.swf') || !file_exists($path .'/swfupload.js')) {

...Not quite sure why that isn't working for you.... Are you sure you put it in the right path?

robloach’s picture

Assigned: Unassigned » robloach
Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new1.32 KB

Maybe dirname(__FILE__) would help instead? Mind trying this out?

mikey081’s picture

StatusFileSize
new110.41 KB

Tried your patch, to no effect. I still get the following error from Drupal:

SWFUpload Missing files
You must install the minimalistic SWFUpload library to modules/swfupload/swfupload.

I've attached a shot of my directory to show how my files are saved, I could have very well done something obviously wrong.

This latest version of the module is the first time I've gotten the error (or any error, for that matter, previous versions did nothing at all-literally), and I've installed every previous version of the module the same way.

Sorry for the trouble!

Mikey

robloach’s picture

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

Does the module actually work? Once you install SWFUpload module, can you make file attachements using it? Even though it reports the files as missing?

frjo’s picture

Renaming the files SWFUpload.swf and SWFUpload.js to lowercase got rid of the error for me.

I guess it would be better to fix the module so it recognize the original files.

robloach’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ahhhh, that would make sense. Thanks a lot for finding the problem!

Anonymous’s picture

Status: Fixed » Closed (fixed)