Topic: You did not select a file to upload.

Me and others in my forum can't upload avatars it gives the message (You did not select a file to upload.)

           The link to the forums = http://c-q-c.net/Forum/index.php any help would be most appreciated i'm sure  I just overlooked something very simple.

what i have tried
   1, root and img and avatar directorys are 777
   2 tried ftp file into avatar
   3 tried reading something to help in forums still lost.


                                          Netjunky

[img]http://www.c-q-c.net/img/mysig.png[/img]

Re: You did not select a file to upload.

Hmm. Are "file_uploads" enabled in php.ini? You can check by hitting "Show info" after the PHP version number in admin/index.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: You did not select a file to upload.

Currently, if it is disabled, the check fails here:

        if (!isset($_FILES['req_file']))
            message($lang_profile['No file']);

IMO the best way to solve this would be a new language file entry (which probably isn't happening) tongue

Re: You did not select a file to upload.

Well, not in 1.2.* anyway. I could check if file_uploads are enabled at all before displaying the avatar bit in the profile.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: You did not select a file to upload.

That would work too smile

6 (edited by Netjunky 2005-05-16 03:20)

Re: You did not select a file to upload.

In the index it says File uploads are ON | ON  Hmm I don't remember seeing a  tmp directory in the root I'll make one maybe that will fix it.  Well that didn't work I made the tmp dir 777 also ... bah humbug.  Love the easy forum program though just need to learn more about it I guess.

[img]http://www.c-q-c.net/img/mysig.png[/img]

Re: You did not select a file to upload.

It's difficult to say what's wrong with your setup. What happens if you add the line dump($_FILES); right above the code Smartys pasted above?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

8 (edited by Netjunky 2005-05-17 14:37)

Re: You did not select a file to upload.

Well I I have to admit i'm kinda new to this so I have no idea where to look that info up which php file and such.  now don't laugh...

[img]http://www.c-q-c.net/img/mysig.png[/img]

Re: You did not select a file to upload.

It's in profile.php

Re: You did not select a file to upload.

Ok i'll give that a try thanks

[img]http://www.c-q-c.net/img/mysig.png[/img]

Re: You did not select a file to upload.

when I add that line to the top of the text I get
Array
(
)

[img]http://www.c-q-c.net/img/mysig.png[/img]

Re: You did not select a file to upload.

Ok I actualy put it in the right place this time and it didn't do anything still won't upload

[img]http://www.c-q-c.net/img/mysig.png[/img]

Re: You did not select a file to upload.

Very odd. Create a new PHP script with the following contents:

<?php phpinfo(); ?>

And then post the link here.

"Programming is like sex: one mistake and you have to support it for the rest of your life."