MyUPB.com Discussion forums
You are not logged in. Please Register or Login.

Announcements

This project is not completely dead. I've just started work on localisation.
Please email me at clark@NOSPAMmyupb.com once you've registered so I can activate your account (remove "NOSPAM" from the email address)
~~~~ Clark


If you're getting a "Deprecated" error message, follow the instructions here

URGENT Security Patch for ≤ v2.2.6
A security hole has been discovered, follow the instructions and download the patch at the topic page.
Did the patch break your search page? Search Patch

Download myUPB
Version 2.2.7 Released - 24th December 2010


Posted: Jun 28, 2007 9:03:42 am
Jornext



The UPB 2.0 uploading works fine, but the 1.96 version doesn't. Also other fileupload scripts that I have work fine.
I looked at the code of newpost.php and noticed that the fileupload codeblock appears twice in the script.

Posted: Jun 28, 2007 9:05:50 am
Jornext



Attachement failed here. Trying again...

Posted: Jun 28, 2007 12:57:36 pm
Pilot



Oh I forgot, it doesn't work here because we just had a problem with our webhost the past few days, it will be back up here in a day or two. It does work here though.
Tim Hoeppner

UPB Programmer
B. Sc. in Electrical Engineering

Posted: Aug 14, 2007 7:25:07 am
Jornext



Attachment: newpost.php

I'm back. Here is the script I was talking about.
Is there a bug in it or is there another way to get the file uploading to work?

Posted: Aug 15, 2007 1:54:02 am
Pilot



Well it sure doesn't feel good looking at this old code, looks like the problem is that its assuming register_globals is on. Try this...

right after the FIRST //FILE UPLOAD BEGIN add

PHP Code:
$file_name = $_FILES["file"]["name"];
$file_type = $_FILES["file"]["type"];
$file = $_FILES["file"]["tmp_name"];


That should do the trick. Oh and remove the code after the second //FILE UPLOAD BEGIN up until the //END
Tim Hoeppner

UPB Programmer
B. Sc. in Electrical Engineering

Posted: Aug 15, 2007 6:52:28 pm
Rebles



I think you need both of them.  One for new topics, and another for replies.  I believe that's how it was set up in UPB 1.
--Jerroyd Moore
Bachelors of Science, Computer Science 2011
Jack Baskin School of Engineering
University of California, Santa Cruz

Posted: Aug 15, 2007 10:22:54 pm
Pilot



ahh your probably right. put that code under both //FILE UPLOAD BEGIN then
Tim Hoeppner

UPB Programmer
B. Sc. in Electrical Engineering

Posted: Aug 16, 2007 1:18:05 am
Rebles



If you upgrade to v2, you won't have these code redundancies, you'll be able to upload files without any code modifications, and you'll have better support (*coughs in Pilot's direction*) :)
--Jerroyd Moore
Bachelors of Science, Computer Science 2011
Jack Baskin School of Engineering
University of California, Santa Cruz

Powered by myUPB v2.2.6  ·   © PHP Outburst 2002 - 2013

Creative Commons License