Error:No File Was Uploaded ! Error:No File Was Uploaded !
 

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

Error:No File Was Uploaded !

Started by stevehello1234, February 21, 2009, 10:52:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stevehello1234

Hi all,

Sorry for posting this as I'm sure its something simple but I just can't upload to me new Coppermine gallery! (bridged to phpbb3)

The error I get is:

No file was uploaded !
If you have really selected a file to upload, check that the server allows file uploads...
File: /home/spikeopathuk/public_html/Gallery/db_input.php - Line: 311


The gallery is here:
http://www.spikeopaths.org.uk/Gallery
Test account is user=Test/Password=TestTest

I've turned on the debug jobby !

Thanks in advance !

Steve


stevehello1234

doops !  :P

sorry all, I managed to get the case of the user name and password wrong !!

its test/testtest

The BB doesn't have any forums set up yet so you'll neeed to log on - and then go back to the gallery link above

If you could have a look that would be great and apologies if i wasted anyones time before ! (too much red wine - hic!)




JohnM-UK

Tried uploading a 98kb file get the same error as you at various times from 0:30 to 1:49, on one try my browser (Opera) came up with 'could not connect to remote server'
Debug text from the upload error:

QuoteUSER:
------------------
Array
(
    [ID] => 100b824f47accf0d47a816d7e0f9cbaf
    [am] => 1
    [lang] => english_gb
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 56
    [user_name] => test
    [groups] => Array
        (
           
  • => 2
            )

        [disk_max] => 20000
        [disk_min] => 20000
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 0
        [ufc_min] => 0
        [custom_user_upload] => 0
        [num_file_upload] => 1
        [num_URI_upload] => 0
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 0
        [has_admin_access] => 0
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Registered
        [upload_form_config] => 0
        [group_quota] => 20000
        [can_see_all_albums] => 0
        [group_id] => 2
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0.001s)
        [1] => select * from cpg14x_plugins order by priority asc; (0s)
        [2] => SELECT * FROM cpg14x_bridge (0s)
        [3] => SELECT user_id, user_password FROM `forum989941`.phpbb_sessions INNER JOIN `forum989941`.phpbb_users ON session_user_id = user_id WHERE session_id='a53deafdab0c48526917217ff587e72c'; (0.001s)
        [4] => SELECT u.user_id AS id, u.username AS username, u.user_password AS password, u.group_id+100 AS group_id FROM `forum989941`.phpbb_users AS u INNER JOIN `forum989941`.phpbb_groups AS g ON u.group_id=g.group_id WHERE u.user_id='56' (0s)
        [5] => 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(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, 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, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (2) (0.001s)
        [6] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 2 (0s)
        [7] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 56 (0.001s)
        [8] => DELETE FROM cpg14x_banned WHERE expiry < '2009-02-22 22:22:46' (0s)
        [9] => SELECT * FROM cpg14x_banned WHERE (ip_addr='195.137.107.122' OR ip_addr='195.137.107.122' OR user_id=56) AND brute_force=0 (0.035s)
        [10] => SELECT category FROM cpg14x_albums WHERE aid='3' and (uploads = 'YES' OR category = '10056') (0.001s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 3
        [MAX_FILE_SIZE] => 614400
        [title] => Ship
        [caption] =>
        [keywords] =>
        [event] => picture
    )

    ==========================
    Page generated in 0.486 seconds - 11 queries in 0.04 seconds - Album set : ; Meta set: ;

Joachim Müller

Does the server actually allow file uploads? Can you temporarily disable bridging and then again? Does uploading work as expected when bridging is off? You first need to make sure what this issue is related to: bridging issues or upload issues (server issues). Please confirm.

stevehello1234

Thanks guys

1) OK I have disabled bridging. Gallery User=test Password=testtest. I get the same problem
2) The server allows uploads (according to PHP_INFO), plus I have file uploads on my main site spikeopaths.org.uk which also works fine

Thanks a lot for the help folks - any more ideas ?

Cheers

Steve

Joachim Müller

Is the temporary upload folder there and does the account your webspace runs under have permissions to write to that temporary folder? Usually, you can not figure this out on your own - you'll need to ask your webhost.

stevehello1234

Hey Joachim - spot on ! the upload folder was not there and my other uploads were failing ! (I had just moved servers so i think that was the problem) The error I now get is below:

The file 'albums/userpics/10002/p_bath.jpg' can't be inserted in the album
Unable to create thumbnail or reduced size image.
File: /home/spikeopathuk/public_html/Gallery/db_input.php - Line: 402


I think the folder permissions are OK (should the 777 access on the include folder be recursive or the include level only?)

Thanks for you help - i appreciate it

Steve

stevehello1234

Ha ha ! ::)

SORTED! It was 2 issues

1) Web host hadn't enabled uploads after our recent server move
2) The resize engine was set to Image Magick instead of GD version 2

Thanks for all you help guys

steve