File Upload Help

Reply

Join Date: Nov 2006
Posts: 17
Reputation: HailttRedskins is an unknown quantity at this point 
Solved Threads: 0
HailttRedskins's Avatar
HailttRedskins HailttRedskins is offline Offline
Newbie Poster

File Upload Help

 
0
  #1
Dec 26th, 2006
I got the coding for uploading files to my website throug a simple browse option off a page. I choose the file upload size to be 150mb, but it wont allow anything under 10mb it seems. I am real good friends with my host, he told me something like, it wont upload files that big unless its via FTP, so what I was wondering if there was a script to fix this, or if there was another php upload code that has different coding to get around it.

Any help would be great.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 64
Reputation: trafficman is an unknown quantity at this point 
Solved Threads: 0
trafficman's Avatar
trafficman trafficman is offline Offline
Junior Poster in Training

Re: File Upload Help

 
0
  #2
Dec 26th, 2006
try with the ftp_connect function.
char after char, word after word... leads to a website then a network...
Linkstraffic - Web Directory - Web Site Traffic
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 17
Reputation: HailttRedskins is an unknown quantity at this point 
Solved Threads: 0
HailttRedskins's Avatar
HailttRedskins HailttRedskins is offline Offline
Newbie Poster

Re: File Upload Help

 
0
  #3
Dec 26th, 2006
Im not real good with PHP at all, could you possibly help me out, or give me the code on where to enter it?

This is what I have so far:
  1. <html>
  2. <head><title>Submit Your File</title></head>
  3. <link rel="StyleSheet" href="style.css" type="text/css">
  4. <body background="images/site_06.jpg">
  5. <center>
  6. Thank you for chosing to send your files to Flawless Skins<br>Please take note that Flawless Skins only allows Images, and Videos to the website. Any files other than these will not be looked at, instead they will be deleted immediately.<br>The max file size allowed to be submitted at one time is 150mb<br><br>
  7. <form enctype="multipart/form-data" action="uploader.php" id="form" method="POST" onsubmit="a=document.getElementById('form').style;a.display='none';b=document.getElementById('part2').style;b.display='inline';" style="display: inline;">
  8. <input type="hidden" name="MAX_FILE_SIZE" value="157286400""><br><br>
  9. Choose a file to upload: <input name="uploadedfile" type="file" /><br />
  10. <input type="submit" value="Upload File" />
  11. </form>
  12. <div id="part2" style="display: none;">
  13. <script language="javascript" src="xp_progress.js"></script>
  14. Upload in progress. Please Wait...
  15. <BR><BR>
  16. <script type="text/javascript">
  17. var bar1= createBar(300,15,'grey',1,'black','#EFC151',85,7,3,"");
  18. </script>
  19.  
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 6
Reputation: PeppySoft is an unknown quantity at this point 
Solved Threads: 0
PeppySoft PeppySoft is offline Offline
Newbie Poster

Re: File Upload Help

 
0
  #4
Dec 27th, 2006
Normally file upload using files will be allowed 2MB in PHP (That is default setting in php.ini file).

Ask your server admin about this limit.

You can use FTP functions to upload can be found at http://in.php.net/ftp.
-----------
PeppySoft
AdsWorldSite
FreeThingSite
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: File Upload Help

 
0
  #5
Dec 27th, 2006
Originally Posted by PeppySoft View Post
Normally file upload using files will be allowed 2MB in PHP (That is default setting in php.ini file).

Ask your server admin about this limit.

You can use FTP functions to upload can be found at http://in.php.net/ftp.
to see your PHP upload size limit, make a file called phpinfo.php
and inside of it, place the following php code:

[php]<? phpinfo() ?>[/php]then access that page from your browser and press Ctrl+F to search for the following: upload_max_filesize

this will tell you the max upload you are allowed on your server

you can try something like this:
  1. <IfModule mod_php4.c>
  2. php_value upload_max_filesize 150M
  3. </IfModule>
in a .htaccess file, from what I read this is not suppose to work according to PHP but it in actuality does, so who knows
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 64
Reputation: trafficman is an unknown quantity at this point 
Solved Threads: 0
trafficman's Avatar
trafficman trafficman is offline Offline
Junior Poster in Training

Re: File Upload Help

 
0
  #6
Jan 8th, 2007
sorry I made a mistake; there should be some way by splitting your file locally then uploading it.
Let me look into it.
char after char, word after word... leads to a website then a network...
Linkstraffic - Web Directory - Web Site Traffic
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 64
Reputation: trafficman is an unknown quantity at this point 
Solved Threads: 0
trafficman's Avatar
trafficman trafficman is offline Offline
Junior Poster in Training

Re: File Upload Help

 
0
  #7
Jan 8th, 2007
well there is no way to do without the use of activeX, java applet or some tricking with javascript.
The easiest way would consist on changing the php_value upload_max_filesize variable and the execution time of a script.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: File Upload Help

 
0
  #8
Jan 8th, 2007
actually i believe the max execution time of a script wouldn't matter in this case, because uploading a file as far as php cares is not part of the script execution time.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 138
Reputation: php_daemon is an unknown quantity at this point 
Solved Threads: 2
php_daemon php_daemon is offline Offline
Junior Poster

Re: File Upload Help

 
0
  #9
Jan 9th, 2007
See the error code in $_FILES['uploadedfile']['error'] and check it against http://www.php.net/manual/en/feature...oad.errors.php to find out what the error is.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 64
Reputation: trafficman is an unknown quantity at this point 
Solved Threads: 0
trafficman's Avatar
trafficman trafficman is offline Offline
Junior Poster in Training

Re: File Upload Help

 
0
  #10
Jan 10th, 2007
Originally Posted by paradox814 View Post
actually i believe the max execution time of a script wouldn't matter in this case, because uploading a file as far as php cares is not part of the script execution time.
I think it is related as your program will wait till the file has been uploaded!
char after char, word after word... leads to a website then a network...
Linkstraffic - Web Directory - Web Site Traffic
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC