473,811 Members | 2,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_t ime & 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_file size = 80M

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

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

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

Guillaume
Aug 10 '05 #1
4 1523
>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
transfere d" ?!

<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
8668
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 int array byte for example: byte=0xEFBB byte=0xBF0D
11
6643
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 transfer data across.On the serve I am using Socket 2 API (recv function to read bytes)and not using ..NET. I use FileStream to open the file on the pocket pc, then associate a BinaryReader object with the stream and call ReadBytes to read all the...
11
32590
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 progress, the filesize, as indicated in Windows Explorer or derived with the above two lines of code, will be the size of the file once the copy operation has completed. Is there a way to
8
7587
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: streamWriter = new StreamWriter(@startupPath+"\\"+filename, false); streamWriter.WriteLine(data); I am not specifying any file Encoding. When I try to open the file
15
4784
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 button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
1
8131
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! The transfert is stoped randomly (sometimes at 25%, sometimes at 75%,...). And I don't understand why?! :/
10
10634
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 example to follow for using a tcp socket to transfer files between client/server, server/client. Both server and client are my program so I'm not looking for how to implement an FTP client, or how to download a file from a web server via http...
2
3898
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 file transfer?????? -Ted
0
2080
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 developers who are creating .NET applications, the File Transfer .NET component offers a comprehensive interface for uploading and downloading files. The Catalyst File Transfer .NET component is a managed code component that is fully compatible with...
6
2786
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 but the user would have to select the file and initiate the transfer. I would like the transfer to start under program control and not require the user's interaction. In the past I would simply do a GET or POST transfer of a collection of
0
9724
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10127
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9201
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7665
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4336
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.