473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

can't seem to upload .flv file thru php

Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for file,
validate, upload if no errors. Well, something is not working when I try
to upload a flv file. For starters, I print out the $_post and $_files
arrays and I see that if I browsed for, say, a wmv video then those
arrays contain all the needed data. If I browse for a flv, however, both
arrays stay empty, like it looses, for some unknown reason, all the data
entered in the form. Any idea why? Could it be a mimi/type-related issue?
I gathered that flvs' mime/type was not yet really defined. I don't
know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs

Thanks
Feb 5 '08 #1
4 2947
On Tue, 05 Feb 2008 17:51:44 +0100, henribaeyens <co*****@myname.com>
wrote:
Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for file,
validate, upload if no errors. Well, something is not working when I try
to upload a flv file. For starters, I print out the $_post and $_files
arrays and I see that if I browsed for, say, a wmv video then those
arrays contain all the needed data. If I browse for a flv, however, both
arrays stay empty, like it looses, for some unknown reason, all the data
entered in the form. Any idea why? Could it be a mimi/type-related issue?
I gathered that flvs' mime/type was not yet really defined. I don't
know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs
Also check max_post_size, and are you sure you're using the exact same
form?
Any other validation/redirection you might be doing?
--
Rik Wasmus
Feb 5 '08 #2
On Tue, 05 Feb 2008 17:59:41 +0100, Rik Wasmus wrote:
On Tue, 05 Feb 2008 17:51:44 +0100, henribaeyens <co*****@myname.com>
wrote:
>Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for
file, validate, upload if no errors. Well, something is not working
when I try to upload a flv file. For starters, I print out the $_post
and $_files arrays and I see that if I browsed for, say, a wmv video
then those arrays contain all the needed data. If I browse for a flv,
however, both arrays stay empty, like it looses, for some unknown
reason, all the data entered in the form. Any idea why? Could it be a
mimi/type-related issue? I gathered that flvs' mime/type was not yet
really defined. I don't know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs

Also check max_post_size, and are you sure you're using the exact same
form?
Any other validation/redirection you might be doing?
max_post_size is 8 megs

For now I'm not validating anything since I stumbled upon this issue, I
just output $_POST and $_FILE to see if, at least, the data is there.
Then I hit BACK, reload the form and reenter some data. It just boggles
my mind.
Feb 5 '08 #3
henribaeyens wrote:
On Tue, 05 Feb 2008 17:59:41 +0100, Rik Wasmus wrote:
>On Tue, 05 Feb 2008 17:51:44 +0100, henribaeyens <co*****@myname.com>
wrote:
>>Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for
file, validate, upload if no errors. Well, something is not working
when I try to upload a flv file. For starters, I print out the $_post
and $_files arrays and I see that if I browsed for, say, a wmv video
then those arrays contain all the needed data. If I browse for a flv,
however, both arrays stay empty, like it looses, for some unknown
reason, all the data entered in the form. Any idea why? Could it be a
mimi/type-related issue? I gathered that flvs' mime/type was not yet
really defined. I don't know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs
Also check max_post_size, and are you sure you're using the exact same
form?
Any other validation/redirection you might be doing?

max_post_size is 8 megs

For now I'm not validating anything since I stumbled upon this issue, I
just output $_POST and $_FILE to see if, at least, the data is there.
Then I hit BACK, reload the form and reenter some data. It just boggles
my mind.
Your code would help.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 6 '08 #4
On Wed, 06 Feb 2008 14:33:34 -0500, Jerry Stuckle wrote:
henribaeyens wrote:
>On Tue, 05 Feb 2008 17:59:41 +0100, Rik Wasmus wrote:
>>On Tue, 05 Feb 2008 17:51:44 +0100, henribaeyens <co*****@myname.com>
wrote:

Hello,

I have this question that hopefully some of you guys can answer.

So I use the usual mechanism: display form, enter data, browse for
file, validate, upload if no errors. Well, something is not working
when I try to upload a flv file. For starters, I print out the $_post
and $_files arrays and I see that if I browsed for, say, a wmv video
then those arrays contain all the needed data. If I browse for a flv,
however, both arrays stay empty, like it looses, for some unknown
reason, all the data entered in the form. Any idea why? Could it be a
mimi/type-related issue? I gathered that flvs' mime/type was not yet
really defined. I don't know...

ubuntu 7.10, apache2, php 5.2.3, upload_max_size set to 16 megs
Also check max_post_size, and are you sure you're using the exact same
form?
Any other validation/redirection you might be doing?

max_post_size is 8 megs

For now I'm not validating anything since I stumbled upon this issue, I
just output $_POST and $_FILE to see if, at least, the data is there.
Then I hit BACK, reload the form and reenter some data. It just boggles
my mind.

Your code would help.
That's not the code, it's the value of post_max_size. It wasn't a flv
issue as I first suspected but a $_POST ($_FILES) size issue, the post
max size has to large. I had no problems with files that were less than
post_max_size, when the file was larger (than the default 8 megs) then
there was trouble. I scanned the apache logs and say this "POST Content-
Length" warning. BINGO!
Feb 6 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: fdsl ysnh | last post by:
--- python-list-request@python.orgдµÀ: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, > visit >...
15
by: Sue Barth | last post by:
Hi all, I hope I'm in the right ng for this... I made an .asp page that allows users to toggle thru a directory of photos. The page accomplishes the following: selects a directory of photos...
6
by: jemmaq99 | last post by:
Using Visual Studio .NET 2003 I've tried to add a COM reference to a Windows Form project via the Add Reference dialog (specifically the Active DS Type Library) but always get the error message: ...
3
by: Karen Grube | last post by:
Hi! Each week, we receive a two-page PDF file from UPS along with a separate flat file (a CSV) The PDF file contains the overview of our weekly invoice and the CSV contains the details of each...
6
by: Paul M | last post by:
hi there, i have an xml file, but am not too sure how to read all these elements using vb.net code. any help would be greatly appreciated:)) <---------CODE---------------> <?xml...
0
by: Bill nguyen | last post by:
I have a VB routine that will need to access a client website via user login ID & password then upload a text file to the site by going thru certain menu options. It would be great if I can do it...
6
by: Julien | last post by:
Hello, I have some files located in a file server and managed by a SQL database from a web based interface using ASP + VBSCRIPT technology. I need to automatically copy those files to a web...
1
by: pbd22 | last post by:
hi. i have been posting this here and elsewhere a lot and can't seem to get resolution on this problem. i have been trying to upload files using a hidden iframe to a asp.net/vb.net form. the...
5
by: Arthur Jacobs | last post by:
Good day, I am trying to upload a file to the server. http://chops.novatrope.com/game/test/form2.html Here is some more debugging info:Array ( =Array ( =Pequot.gif =>
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.