Nothing upload using SWF Upload

parasolx - April 29, 2009 - 00:55
Project:album photos
Version:6.x-2.6-beta3
Component:User interface
Category:support request
Priority:critical
Assigned:parasolx
Status:active
Description

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?

#1

cisana - May 6, 2009 - 09:28

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

#2

parasolx - May 6, 2009 - 11:46

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.

#3

cisana - May 6, 2009 - 13:01

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.

AttachmentSize
upload_save_test.zip 50.31 KB

#4

parasolx - May 6, 2009 - 13:35

its working...

so how i need to fixed for my site?

or is there something wrong with my drupal setting?

#5

cisana - May 7, 2009 - 15:26

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.

AttachmentSize
PhotosSettings.pdf 67.88 KB

#6

parasolx - May 7, 2009 - 15:58

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.

#7

cisana - May 8, 2009 - 13:17

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:

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

and after line 158
<?php
}else{
  
watchdog('photos_swfu', '_photo_save_data error.');
}
?>

it shoul look as follow:

<?php
           
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.

#8

parasolx - May 8, 2009 - 15:15

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

#9

pixelpreview - June 5, 2009 - 14:22

same problems fro me

error 500 with swfupload

normal upload is ok

 
 

Drupal is a registered trademark of Dries Buytaert.