Jump to content

upload problems


Recommended Posts

everything is working but i want some things changed..

i want to only accept .ipa and if possible how can i make it so the

 

"Download Link, http://teambrod.110mb.com/upload/"

 

doesnt show up before you upload something

 

Script

    <?php

$path1= "upload/".$HTTP_POST_FILES['ufile']['name'][0];

copy($HTTP_POST_FILES['ufile']['tmp_name'][0], $path1);

 

echo " Download Link, http://teambrod.110mb.com/upload/".$HTTP_POST_FILES['ufile']['name'][0]."<BR/>";

 

$filesize1=$HTTP_POST_FILES['ufile']['size'][0];

if($filesize1 != 0)

{

echo "Upload Complete";

}

?>

 

also when you upload something it will save here:

 

"upload/filename.extension"

 

but i want it so there is a submit field (i think) that will allow you to type in a name for it, eg.

 

the file is called "blah" but you type in the form "game" then it changes it to:

 

"upload/game.ipa"

 

thanks a bunch.

 

 

the site, http://teambrod.110mb.com

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.