General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old October 10th, 2002, 01:41 PM
cemlouis cemlouis is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 49 cemlouis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I need help about a multifielded upload form

I made a multifielded upload form, now it is working but when I want to upload files more than 100K it is not working. I tried to solve this prob by adding <input type="hidden" name="MAX_FILE_SIZE01" value="1000000"> but it is not working, I need help for this...


upload.htm

<html><head><title>OBUR</title></head><body>
<form method="post" action="upload.php" enctype="multipart/form-data">
01. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE01" value="1000000">
02. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
03. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
04. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
05. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
06. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
07. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
08. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
09. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
10. <input name="userfile[]" type="file"> <br>
<input type="hidden" name="MAX_FILE_SIZE02" value="1000000">
<input type="submit" value="Upload" >
</form>

upload.php

<?
for($i=0;$i<sizeof($userfile);$i++)
{
if(!$userfile_size[$i])
continue;

$UPLOAD = fopen( $userfile[$i], "r" );
$contents = fread( $UPLOAD,$userfile_size[$i]);
fclose( $UPLOAD );
$SAVEFILE = fopen( "".$userfile_name[$i], "wb" );
fwrite( $SAVEFILE, $contents,$userfile_size[$i] );
fclose( $SAVEFILE );
}
echo "Files gone...";
?>

Reply With Quote
  #2  
Old October 10th, 2002, 02:28 PM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
try using the phpinfo(); function to see if your host is limiting your upload sizes.
__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #3  
Old October 10th, 2002, 03:29 PM
cemlouis cemlouis is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 49 cemlouis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
???

Which section it is written???

Reply With Quote
  #4  
Old October 10th, 2002, 07:01 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
use ctrl+f to find "file" and keep looking till you find maxfilesize or something like that

simple

Reply With Quote
  #5  
Old October 11th, 2002, 08:38 PM
Adman Adman is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 5 Adman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
if safe mode is on, you might need to use move_uploaded_file() instead of copy.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > I need help about a multifielded upload form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway