vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Image upload (https://vborg.vbsupport.ru/showthread.php?t=5669)

12-19-2000 01:52 AM

Fred does your server run php on safe mode?

12-19-2000 01:57 AM

I found out the problem, I edited the file on my HD (global.php3), but I forgot to upload it. A simple mistake that caused the problem.

Anyways, so that part worked. And I made a dir in my forum dir called 'pictures'. I chomd it to 777 like I was told to.

But when I browse for an image, and then try to Upload it, it brings me to this:

Code:

// This is the script that takes the form values and uploads the image to the server. Illegal file type. Only files with .jpg and .gif extensions can be uploaded.
Please click here to go back and try again.

Any idea whats that from?

12-19-2000 02:09 AM

Did you rename upload_file.php to upload_file.php3?

12-19-2000 02:21 AM

Yes, and it's uploaded too ;)

Wonder why it dont work.. i edited upload_file.php3 inside.. was i supposed to?

If so, what was I supposed to edit exactly..?

12-19-2000 08:11 PM

Even though the images are gif or jpg, I am getting this error and am not able to upload images. I am running vB 1.1.4 and PHP4
Thanks
-Hideki

12-19-2000 09:33 PM

Thats my problem too. JimF, please help me with this. The hack looks fantasic so far, I've got it on my pages and everything. The popup comes up, I can browse for an image (jpg or gif) and when I upload, that gay illegal gay comes up.

What EXACTLY do I edit in upload_file.php3 when I'm manually editing it in my Frontpage?

12-20-2000 10:58 PM

So can you help me?

12-21-2000 08:28 AM

hey hows it going
just a small question

when adding the max file size in:
$filesize = "300"
do you make it 300kb or leave it as 300

when i try both it comes up with this error:
// This is the script that takes the form values and uploads the image to the server. Your file is too large. Please click here to go back and try again.

let me know if i am doing anythgin wrong
thanks

12-21-2000 08:56 PM

Does it support Image Upload enabled only in selected forums?

12-23-2000 08:21 AM

what should i do if my serveris running in safe mode?

Quote:

Warning: SAFE MODE Restriction in effect. The script whose uid is 38330 is not allowed to access /tmp/phpC0UJze owned by uid 0 in /web/sites/154/twilightonline/www.twilight-online.f2s.com/forum/upload.php


All times are GMT. The time now is 08:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01091 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete