GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Apr-2009, 14:34
FallofIgnorance FallofIgnorance is offline
New Member
 
Join Date: Apr 2009
Posts: 1
FallofIgnorance is on a distinguished road
Unhappy

HTML POST Uploading Large Files


Hi. I am one of two creators, programmers, and managers of www.fallofignorance.com media and fringe cult (<< joke) website. We have programmed everything from scratch, creating our own php codes, xml feed, databases, and even function library.

We need help, though. I have had problems uploading our podcasts (50Mb+!!!) via the uploader page/program that I, of course, have created from scratch. That's not just bragging, either, I say that because I want you to know that the codes and html contained in this process are stone-age simple and not tied to any web apps or panzy copy/paste or shortcut programs.

If you don't like reading lots of details, skip the next paragraph...

The filesize has caused either the html to send insufficient information, or the php to operate improperly and dump variables or negate conditions. Here's the actual event that happens when I upload the file... "You entered an incorrect username/password" (I designed that message, it's just part of die(). This is wrong, because I have entered it correctly again and again. I have uploaded a buttload of files using the form (every dynamic piece of media you see on the site, actually) and even did some successful tests with smaller files through the same input field on the html form. I tried removing the condition which is
PHP Code:

if(($pass = $virableforpass) && ($user = $varforuser)){ rest o' code...; } 


and replacing it with
PHP Code:

if(1 == 1){ rest o' code...; } 


The result is that it makes its way down the code (it's a long code that checks for many inputs and processes them all in a linear action) and stops all the sudden and fails to continue without warning. My guess: timeout.

In a nutshell: small files will upload with my HTML POST >> PHP, but large files will cause the php to fail a condition regarding the user/pass inputs which shouldn't be failed. I think it's some kind of timeout, because of how long it takes.

here's some details:

Hosting details:

-My webhost DOES allow me to upload files larger than the problematic one.
-My webhost DOES allow this filetype 'mp3'.

Files details:

-The file is MP3.
-The file is about 50Mb.
-I have SUCCESSFULLY stored this file in the server, it is NOT corrupt.

Code/script details:

-There is NO error message, it fails the condition and concludes as would be proper afterwards.
-The condition IS correct, I designed it and have used it without previous failure many times.
-I AM using mySQL to store timestamps and other information for archiving.
-I am using the $_FILES['inputFile']['name'] to detect the file.

Input details:

-I am NOT submitting information for other sections of the code (the code is set to detect variables with 'of' conditions and those are the 'sections' in which the data is processed)
-I HAVE used this form to submit smaller files without error.

Thanks for any input, a little help will be very appreciated, because I can't seem to find this problem anywhere else or a solution for that matter.
  #2  
Old 23-Apr-2009, 23:43
MisterChucker's Avatar
MisterChucker MisterChucker is offline
Junior Member
 
Join Date: Mar 2009
Location: Cyberspace, Earth
Posts: 53
MisterChucker is a jewel in the roughMisterChucker is a jewel in the roughMisterChucker is a jewel in the rough

Re: HTML POST Uploading Large Files


  1. Save the following script to a new file on your server.
  2. Change your upload form's action attribute to point to the new file.
  3. Upload your large MP3 file using the form.
  4. Post the output of the script.

PHP Code:

<?php
header('Content-Type: text/plain');

ini_echo('upload_max_filesize');
ini_echo('max_execution_time');
ini_echo('max_input_time');
ini_echo('memory_limit');

echo '$_FILES = ';
print_r($_FILES);

function ini_echo ($varname)
{
    echo $varname . ' = ' . ini_get($varname) . "\n";
}
?>

I am mostly interested in upload_max_filesize, but any other clues are helpful too.
  #3  
Old 01-Jun-2009, 04:26
PureThree PureThree is offline
New Member
 
Join Date: Jun 2009
Posts: 1
PureThree is an unknown quantity at this point

Re: HTML POST Uploading Large Files


With this code I am really glad that I read this.this things that I gather really helps me.
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert html files to doc files? asenthil C++ Forum 2 11-Jan-2007 00:49
convert C to HTML! betazee C Programming Language 2 11-Jun-2006 03:20
trouble uploading jpeg & png files via FTP mikekelly Web Design Forum 5 24-Feb-2006 22:39
Uploading large files through html forms spike666 Web Design Forum 2 15-Jan-2005 19:57
converting text files to html files kensenb C Programming Language 13 09-Nov-2004 12:33

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:31.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.