Flash Driven Upload wont work Flash Driven Upload wont work
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Flash Driven Upload wont work

Started by profili, April 13, 2011, 01:45:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

profili

After server move I'm facing a problem with my Coppermine driven gallery.
For some reason the flash driven upload mode is not working. I get the message "Impossible to move".
Although the simple upload mode is working just fine.
Any idea how to solve this?

Thank you.

http://www.galsh.com/



profili

In my gallery the anonimous users CAN upload files. You can test it by yourself.

phill104

From the link Andre posted

QuoteEnable troubleshooting settings
If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages. This applies to all upload methods, not only HTTP uploads.

Details
Even if you have issues with batch-adding pics (or any other uploading method), you should perform the steps mentioned below that check http uploads, as http uploads are the most basic upload method that needs to work under all circumstances.
If you're going to request support on upload issues on the coppermine support board, you're requested to perform the steps mentioned below in detail.
When troubleshooting uploads in CPG 1.5, you are advised to activate 'Debug mode' in the config console. Changing this setting negates some of the error masking done in the multiple upload setting. This will allow you to access more detailed error messages.

■Log in as admin
Go to your coppermine page and log in as admin
■Set "Default upload method" to "Simple"
•Go to the config screen•Scroll to the section "User settings" and expand it by clicking on it•Set the Default upload mechanism to "Simple - one file at a time"•Scroll to the bottom of the page•Save the new settings by clicking on "Save new configuration"
■Enable "debug mode"
•Go to the config screen•Scroll to the section "Maintenance settings" and expand it by clicking on it•Enable debug mode for everyone by clicking on "Yes: Everyone" in the line "Enable debug mode"•Leave display of notices switched off - if the checkbox "Display notices in debug mode" is ticked, un-tick it (notices are only meant for developers - if you have idea what they mean, leave them off permanently)•Scroll to the bottom of the page•Save the new settings by clicking on "Save new configuration"
■Go to the http uploads page by clicking on the "upload file" link in the main coppermine menu
The http uploads page will be available for you as admin at any time. This is not the case though for non-admin visitors of your gallery: it depends on the permissions you assign them if they will have the upload file link in the menu.
■On the upload file screen, choose an album from the "Album" dropdown
If you don't have an album you can pick from the list, you haven't created an album yet. You have to understand that you need at least one album where your upload can go to. Go to the album manager and create at least one album first, then try again uploading.
■Click the "Browse..." button and navigate to a small, known-good jpg-file on your hard drive.
Don't assume that any image will work - the term "known-good" in this case means that you should use an image that already has been processed by coppermine to make sure it is a file that coppermine can handle - this can best be achieved if you download an image from the coppermine demo on the original coppermine home page.
■Submit the form by clicking on the "Upload file" button
By submitting the form you start the actual upload process - everything you did before were just preparations.
You should try using http uploads, even if you experienced troubles using another upload method. You should get a more detailed error message if something is wrong that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.

If you don't get an error message at all, you probably have overloaded the server with previous attempts - please review the server-sided limitations that might apply for you.
It is a mistake to think you can solve any major problems just with potatoes.

profili

From the debug output

------------------
Array
(
    [ID] => a914bafd4fb4f34bb54c099fe5135751
    [am] => 1
    [lang] => english_gb
    [upload_method] => swfupload
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => pixel
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [can_create_public_albums] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpg148_config [include/init.inc.php:181] (0 ms)
    [1] => SELECT * FROM cpg148_plugins ORDER BY priority [include/plugin_api.inc.php:54] (0 ms)
    [2] => SELECT * FROM cpg148_plugins [plugins/xfeed/include/load_xfdset.php:24] (0 ms)
    [3] => SELECT * FROM cpg148_plugin_xfeeds [plugins/xfeed/include/load_xfdset.php:34] (0 ms)
    [4] => SELECT user_id, time FROM `gsh_galeria`.cpg148_sessions WHERE session_id = '9c5a0c69f9ad84aaae2fd2624a71f722' [bridge/coppermine.inc.php:264] (0 ms)
    [5] => SELECT user_id, user_password FROM `gsh_galeria`.cpg148_users WHERE user_id = 1 [bridge/coppermine.inc.php:276] (0 ms)
    [6] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `gsh_galeria`.cpg148_users AS u LEFT JOIN `gsh_galeria`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0 ms)
    [7] => SELECT user_group_list FROM `gsh_galeria`.cpg148_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:202] (0 ms)
    [8] => SELECT MAX(group_quota) AS disk_max, MIN(group_quota) AS disk_min, MAX(can_rate_pictures) AS can_rate_pictures, MAX(can_send_ecards) AS can_send_ecards, MAX(can_post_comments) AS can_post_comments, MAX(can_upload_pictures) AS can_upload_pictures, MAX(can_create_albums) AS can_create_albums, MAX(has_admin_access) AS has_admin_access, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg148_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:323] (0 ms)
    [9] => SELECT group_name FROM cpg148_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0 ms)
    [10] => SELECT COUNT(*) FROM cpg148_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:340] (0 ms)
    [11] => SELECT lang_id FROM cpg148_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
    [12] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 [include/init.inc.php:387] (0 ms)
    [13] => SHOW TABLES LIKE 'cpg148_cms_config' [plugins/minicms/include/init.inc.php:54] (0 ms)
    [14] => SELECT * FROM cpg148_cms_config [plugins/minicms/include/init.inc.php:58] (0 ms)
    [15] => DELETE FROM cpg148_banned WHERE expiry < '2011-04-14 00:23:55' [include/init.inc.php:443] (0 ms)
    [16] => SELECT null FROM cpg148_banned WHERE (user_id=1 OR '93.111.213.74' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
    [17] => SELECT aid, title, cid, name FROM cpg148_albums INNER JOIN cpg148_categories ON cid = category WHERE category < 10000 [upload.php:571] (3 ms)
    [18] => SELECT aid, title FROM cpg148_albums WHERE category = 0 [upload.php:573] (0 ms)
    [19] => SELECT aid, title FROM cpg148_albums WHERE category='10001' ORDER BY title [upload.php:599] (0 ms)
    [20] => SELECT user_id AS user_id, user_password AS pass_hash FROM `gsh_galeria`.cpg148_users WHERE user_id = '1' [bridge/udb_base.inc.php:740] (0 ms)
    [21] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' [include/functions.inc.php:2418] (12 ms)
    [22] => SELECT lang_id, abbr FROM cpg148_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2315] (0 ms)
    [23] => DELETE FROM cpg148_temp_messages WHERE time < 1302729835 [include/functions.inc.php:4927] (0 ms)
    [24] => SELECT cid, parent, name FROM cpg148_categories WHERE 1 [upload.php:247] (0 ms)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
COOKIE :
------------------
Array
(
    [cpg143_data] => YTo1OntzOjI6IklEIjtzOjMyOiJhOTE0YmFmZDRmYjRmMzRiYjU0YzA5OWZlNTEzNTc1MSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czoxMDoiZW5nbGlzaF9nYiI7czoxMzoidXBsb2FkX21ldGhvZCI7czo5OiJzd2Z1cGxvYWQiO3M6MzoibGl2IjthOjA6e319
    [__utma] => 158143404.912125340.1302651543.1302703063.1302733149.5
    [__utmz] => 158143404.1302733149.5.4.utmcsr=alb5.com|utmccn=(referral)|utmcmd=referral|utmcct=/
    [d7f1a3188f07fe564bf035f20efd033c] => 82b853cdd5ef45d732cde46113ffd870
    [__utmb] => 158143404.6.10.1302733149
    [__utmc] => 158143404
    [picinfo] => block
)

==========================
VERSION INFO :
------------------
PHP version        5.2.17     OK   
MySQL version      5.1.56-log OK   
Coppermine version 1.5.12     stable

==========================
Module: GD
------------------
Exact version                    2.0.34                     
GD Version                       bundled (2.0.34 compatible)
FreeType Support                 1                         
FreeType Linkage                 with freetype             
T1Lib Support                                               
GIF Read Support                 1                         
GIF Create Support               1                         
JPG Support                      1                         
PNG Support                      1                         
WBMP Support                     1                         
XPM Support                      1                         
XBM Support                      1                         
JIS-mapped Japanese Font Support                           

==========================
Key config settings
------------------
site_url             http://www.galsh.com/                           
charset              utf-8                                           
allow_private_albums 1                                               
cookie_name          cpg143                                           
cookie_path          /                                               
impath               /usr/local/bin/                                 
lang                 english_gb                                       
main_page_layout     breadcrumb/lasthits,1/lastup,1/lastcom,1/alblist/
silly_safe_mode      0                                               
smtp_host                                                             
theme                galsh2011                                       
thumb_method         gd2                                             

==========================
Plugins
------------------
Name           XFeeds                                                             
Actions        plugin_install, plugin_uninstall                                   
Filters        gallery_header, admin_menu, page_meta                               
--------------
Name           Link target                                                         
Actions        page_start                                                         
Filters                                                                           
--------------
Name           MiniCMS                                                             
Actions        plugin_install, plugin_configure, page_start, post_breadcrumb       
Filters        plugin_block                                                       
--------------
Name           Search Engine Friendly URLs                                         
Actions        plugin_install, plugin_uninstall, plugin_configure, plugin_cleanup 
Filters        page_html                                                           
--------------
Name           Filename to tooltip                                                 
Actions                                                                           
Filters        thumb_html_title, thumb_strip_html_title                           
--------------
Name           BBCode Control                                                     
Actions        plugin_install, plugin_uninstall, plugin_cleanup                   
Filters        admin_menu, bbcode, theme_add_comment, theme_edit_comment, file_info
--------------

==========================
Server restrictions
------------------
safe_mode                0                                             
safe_mode_exec_dir       /usr/local/php/bin                           
safe_mode_gid            0                                             
safe_mode_include_dir                                                 
sql.safe_mode                                                         
disable_functions                                                     
file_uploads             1                                             
include_path             .:/usr/lib/php:/usr/local/lib/php             
open_basedir             /home/gsh:/usr/lib/php:/usr/local/lib/php:/tmp
allow_url_fopen          1                                             
max_execution_time       30                                           
max_input_time           60                                           
upload_max_filesize      16M                                           
post_max_size            20M                                           
memory_limit             32M                                           
suhosin.post.max_vars    1000                                         
suhosin.request.max_vars 1000                                         


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     2.10 MiB 3.00 MiB
Page generation  39 ms    39 ms   
Page query time  15 ms    15 ms   
Page query count 25       25     


==========================
                ---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
upload_url:               /upload.php
flash_url:                js/swfupload/swfupload.swf?preventswfcaching=1302733458297
use_query_string:         false
requeue_on_error:         false
http_success:             
assume_success_timeout:   0
file_post_name:           Filedata
post_params:              [object Object]
file_types:               *.*
file_types_description:   All Files
file_size_limit:          12024 KB
file_upload_limit:        0
file_queue_limit:         0
debug:                    true
prevent_swf_caching:      true
button_placeholder_id:    browse_button_place_holder
button_placeholder:       Not Set
button_image_url:         /images/browse_swf.png
button_width:             130
button_height:            20
button_text:             
button_text_style:        .browse { font-family: Arial,Helvetica,sans-serif; color: #D0CFD0;}
button_text_top_padding:  0
button_text_left_padding: 30
button_action:            -110
button_disabled:          true
custom_settings:          [object Object]
Event Handlers:
swfupload_loaded_handler assigned:  true
file_dialog_start_handler assigned: false
file_queued_handler assigned:       true
file_queue_error_handler assigned:  true
upload_start_handler assigned:      true
upload_progress_handler assigned:   true
upload_error_handler assigned:      true
upload_success_handler assigned:    true
upload_complete_handler assigned:   true
debug_handler assigned:             true

SWFUpload.SWFObject Plugin settings:
minimum_flash_version:                      9.0.28
swfupload_load_failed_handler assigned:     true

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number:           SWFUPLOAD 2.2.0
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL:             /upload.php
SWF DEBUG: File Types String:      *.*
SWF DEBUG: Parsed File Types:     
SWF DEBUG: HTTP Success:           0
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit:        12312576 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       0
SWF DEBUG: Post Params:
SWF DEBUG:                         process=1
SWF DEBUG:                         user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImRkNDQ0ZjVmOWE3NTY3OWYzNGE1MzlkZGY2YWUyNWY4Ijt9
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: album=719
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImRkNDQ0ZjVmOWE3NTY3OWYzNGE1MzlkZGY2YWUyNWY4Ijt9
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /upload.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 21887. Total: 21887
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: error|Impossible to move.|0
SWF DEBUG: Event: uploadComplete : Upload cycle complete.

Αndré

I can see a code difference when we try to move the file for the html and the swf uploader.

For html upload we use
Quote from: db_input.phpif (!move_uploaded_file($superCage->files->getRaw("/userpicture/tmp_name"), $uploaded_pic)) {

for swf upload we use
Quote from: upload.phpif (!(move_uploaded_file($superCage->files->getRaw("/Filedata/tmp_name"), $path_to_image))) {


I don't know if it's intended or necessary, but feel free to test it on your gallery.

profili

In upload.php I replaced
if (!(move_uploaded_file($superCage->files->getRaw("/Filedata/tmp_name"), $path_to_image))) {
with
if (!move_uploaded_file($superCage->files->getRaw("/userpicture/tmp_name"), $uploaded_pic)) {

But the problem still persists.

Αndré

That will of course not work. Try to replace it with
if (!(move_uploaded_file($superCage->files->getRaw("/userpicture/tmp_name"), $path_to_image))) {

If that also won't work it's almost impossible to direct you through the debug process. Either you have to debug it yourself, or I'd try to find out what's going wrong if you can create a test gallery for me on that server where I have ftp access.

profili


profili

No more ideas how to resolve this problem?

Αndré

Quote from: Αndré on April 14, 2011, 02:32:56 PM
it's almost impossible to direct you through the debug process. Either you have to debug it yourself, or I'd try to find out what's going wrong if you can create a test gallery for me on that server where I have ftp access.

profili

I can give you ftp access to galsh.com but I need first  contact address from you.
Thank you André.

Αndré


chuvag

Same problem after update to 1.5.16.
Flash upload doesn't work, standard - works perfectly.

Any help?

Αndré

I knew I had something like that somewhere on my to-do list. I'll check that soon.

Please disregard my posts regarding the $superCage->files->getRaw differences. The values are different because they are related to the form field names.

Stramm

I just uploaded using the flash uploader and it seems to work (admin approval is enabled).

I'd properly chmod and chown the albums folder and it's subfolders.

Αndré

Quote from: Stramm on September 12, 2011, 05:47:09 PM
I just uploaded using the flash uploader and it seems to work (admin approval is enabled).

On http://www.galsh.com/ I still get the "Impossible to move" error message. Have you successfully uploaded a picture to that gallery?

Stramm

I have as guest. It should be in the approval queue.

Edit: That's why I suggested chown/ chmod as one folder seems to work and the users dirs seem to have issues.

Edit2: Tried again and it fails... strange

Αndré

That's why I asked, as I also tried to upload as guest.

chuvag