I have reinstall back all this module. But there is a problem when I try to upload using SWF Upload. All the process went OK, the indicator shows and message of upload success also appear.

But, there is nothing files being upload into the server. I already check in the directory, none files is uploading there. And nothing is being insert in the album.

When I used the classic form method to upload, the files are uploaded correctly.

Can somebody lend me a help how to solve this?

CommentFileSizeAuthor
#5 PhotosSettings.pdf67.88 KBcisana
#3 upload_save_test.zip50.31 KBcisana

Comments

cisana’s picture

After upload using SWFUpload check the log entries (admin/reports/dblog), is there a message?

parasolx’s picture

Nothing.. no event was recorded using swf upload.

but with normal form there such log like this:

cron 6 May 2009 - 7:44pm Executed photos_cron via poormanscron, took ... parasolx
cron 6 May 2009 - 7:44pm Executed node_cron via poormanscron, took ... parasolx

And the picture is successfully uploaded and insert in the database.

cisana’s picture

StatusFileSize
new50.31 KB

One suggestion > test the upload with a small example outside photos/drupal as following:

  1. Download the attached file ‘upload_save_test.zip’.
  2. Unpack and copy the ‘upload_save_test’ folder to your site (www.example.com/).
  3. Set the permission for the folder ‘upload_save_test/uploads’ to 777 (writeable).
  4. Enter your email address into the script ‘upload_save_test/simpledemo/upload.php’
    $upload_notify_email = 'youraddress@example.com' in order to receive email reporting.
  5. In your browser enter: ‘http://www.example.com/upload_save_test/simpledemo/index.php’.
  6. Upload one or more files.

In this example SWFUpload Version 2.2.0.1 is used.

parasolx’s picture

its working...

so how i need to fixed for my site?

or is there something wrong with my drupal setting?

cisana’s picture

StatusFileSize
new67.88 KB

Compare your photos-settings (admin/settings/photos) with the settings in the attached file.
Save again your photos configuration, create a new album and upload one or more photos to the new album.

If this doesn't help, I suppose we need to put more errorlog in the PHP-Scripts to narrow the problem.

parasolx’s picture

i have followed all the settings that you given with the attachment and the result still same.. no image(s) is upload to the server.

but i wonder to check through the photos_swfu.module, and look at this line 66:

$v['url'] = url('photos_swfu/upload/'.$pid, $op);

kindly look at the path of "photos_swfu/upload/" is for what.

cisana’s picture

Regarding line 66 in photos_swfu.module I'll come back later.

I would insert more watchdog() to get further details, e.g. in ‘photos_swfu.module’.

after line 157:

 watchdog('photos_swfu', 'File %filename saved.', array('%filename' => $_FILES['Filedata']['name']));

and after line 158

}else{
   watchdog('photos_swfu', '_photo_save_data error.');
 }

it shoul look as follow:

            if($file->fid = _photos_save_data($file, $validators)){
              photos_image_date($file);
              watchdog('photos_swfu', 'File %filename saved.', array('%filename' => $_FILES['Filedata']['name']));
              return true;
            }else{
              watchdog('photos_swfu', '_photo_save_data error.');
            }
          }else{
            file_delete($file->filepath);
            watchdog('photos_swfu', 'Wrong file type');
            return header("HTTP/1.0 403.3 Internal Server Error");
          }

I can’t do it for you, because my ‘photos installation’ works properly.

parasolx’s picture

i have patch the code you have give.

then i upload 1 image, then i try upload another 3 images together, but still no images are uploading.

then i check in database log, seem no report is save. i might think the problem is conflict with my other modules

pixelpreview@gmail.com’s picture

same problems fro me

error 500 with swfupload

normal upload is ok

nathaniel’s picture

Assigned: parasolx » Unassigned
Status: Active » Closed (cannot reproduce)