473,372 Members | 1,022 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,372 software developers and data experts.

file transfer

I use POST to transfer a file from my client to the server. It is
working up to a limit. Trying to transfer a file of 60 MBytes fails
with an error message of 3 which seems to mean "file partially
transfered" ?!

I did tried to increase both max_execution_time & max_input_time
without success ?

Is there a way to have php a bit more talkative ?

Tx
Guillaume

I did set in /etc/php.ini:

post_max-size = 80M
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default
if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 80M

and in /etc/httpd/conf.d/php.conf

#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
AcceptPathInfo On
LimitRequestBody 2097152
</Files>

Any suggestion ? - I am running RedHat 9 & php-4.3.4-1.1.

Guillaume
Aug 10 '05 #1
4 1501
>I use POST to transfer a file from my client to the server. It is
working up to a limit. Trying to transfer a file of 60 MBytes fails
with an error message of 3 which seems to mean "file partially
transfered" ?! <SNIP> Is there a way to have php a bit more talkative ?


Why do you want to send something so big via a http POST? Let us know -
there might be better ways to upload your file.
Aug 10 '05 #2

Michael Phipps wrote:
I use POST to transfer a file from my client to the server. It is
working up to a limit. Trying to transfer a file of 60 MBytes fails
with an error message of 3 which seems to mean "file partially
transfered" ?!

<SNIP>
Is there a way to have php a bit more talkative ?


Why do you want to send something so big via a http POST? Let us know -
there might be better ways to upload your file.


Well, .. first I want to ask why this one shold fail ?
But I use it because it cross firewall and I must admit this is the
only one I know since I am starting with PHP ;-)

Thanks

Guillaume

Aug 10 '05 #3
>> >I use POST to transfer a file from my client to the server. It is
> working up to a limit. Trying to transfer a file of 60 MBytes fails
> with an error message of 3 which seems to mean "file partially
> transfered" ?!

<SNIP>
> Is there a way to have php a bit more talkative ?


Why do you want to send something so big via a http POST? Let us know -
there might be better ways to upload your file.


Well, .. first I want to ask why this one shold fail ?
But I use it because it cross firewall and I must admit this is the
only one I know since I am starting with PHP ;-)


I don't know. I'm just going to ask a whole heap of dumb questions that I'm
sure you already thought of.
Do you have a disk quota? Is there enough room on your hard drive to
actually store the file? How much physical memory is in your computer?

I've never tried a 60MB file - as someone else replied at
http://www.macosx.com/forums/showthr...32#post1162432 it is a
pretty big file - another method may be more reliable.

Sorry I can't help any more - maybe someone else can come up with an
answer - I'd be particularly interested to see if there's a solution.
Aug 11 '05 #4
Michael Phipps a écrit :
I use POST to transfer a file from my client to the server. It is
working up to a limit. Trying to transfer a file of 60 MBytes fails
with an error message of 3 which seems to mean "file partially
transfered" ?!

<SNIP>

Is there a way to have php a bit more talkative ?

Why do you want to send something so big via a http POST? Let us know -
there might be better ways to upload your file.
Well, .. first I want to ask why this one shold fail ?
But I use it because it cross firewall and I must admit this is the
only one I know since I am starting with PHP ;-)

I don't know. I'm just going to ask a whole heap of dumb questions that I'm
sure you already thought of.
Do you have a disk quota? Is there enough room on your hard drive to
actually store the file? How much physical memory is in your computer?

Actually that's good questions but I already check these parameters. I
also saw one post with the same problem on 5K files ...

I've never tried a 60MB file - as someone else replied at
http://www.macosx.com/forums/showthr...32#post1162432 it is a
pretty big file - another method may be more reliable.
At last I will go to an other solution (but I would have like to know
the reason of this problem ;-) )
Sorry I can't help any more - maybe someone else can come up with an
answer - I'd be particularly interested to see if there's a solution.

Aug 11 '05 #5

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

Similar topics

4
by: Lingyun Yang | last post by:
*** post for FREE via your newsreader at post.newsfeed.com *** Dear all, I have a file it's binary data viewed in UltraEdit is EF BB BF 0D 0A 3C ....... I want to read them into a int or long...
11
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to...
11
by: Stephan Steiner | last post by:
Hi Generally, FileInfo fi = new FileInfo(path); long size = fi.Length; gets you the length of a file in bytes. However, when copying files, even while the copy operation is still in...
8
by: Xarky | last post by:
Hi, I am downloading a GIF file(as a mail attachement) with this file format, Content-Transfer-Encoding: base64; Now I am writing the downloaded data to a file with this technique: ...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
1
by: Alex | last post by:
Hello, I'm trying to write a little php script to transfert some files from a server to clients (web/http). It's working fin with small files. But transfering big files (try on 1Gb) failed!...
10
by: David | last post by:
I have googled to no avail on getting specifically what I'm looking for. I have found plenty of full blown apps that implement some type of file transfer but what I'm specifcally looking for is an...
2
by: tedpottel | last post by:
Hi, My program has the following code to transfer a binary file f = open(pathanme+filename,'rb') print "start transfer" self.fthHandle.storbinary('STOR '+filename, f) How can I do an ASCII...
0
by: fiona | last post by:
Yucca Valley, CA, - October 2007: Catalyst Development Corporation, publisher of SocketTools, SocketWrench and LogicGem, today announced the release of Catalyst File Transfer .NET V5.0. For...
6
by: Thom Little | last post by:
I need to transfer an XML file between an application on the client and the server. This would in fact be a copy of the application's .config file. HTML <input form=...would transfer the file...
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.