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

Uploading large files - error "stat failed"

Hello,

I have a page where i can upload binary file (using the HTML input
type=file approach). This works fine for relatively small files
(<6MB)) but when files get bigger (13MB) there is a problem.
The code of the php file is based upon the article in
http://www.onlamp.com/pub/a/php/2000...hp_mysql.html: uploading
large binary files using more than one table and more trhan 1 row per
file.

When I want to upload something of -say- 13MB the problems are:

1 takes ages to upload (slow connection? it's on my LAN),

2 after a while I get a error msg:
"Warning: stat failed for none (errno=2 - No such file or directory)
in /Users/marc/Sites/wwwweb/FTP/FileTransfer.php on line 91"

Lines 90 and 91 are below:
90 clearstatcache();
91 $time = filemtime($SrcPathFile);

(does this mean the tmp file is not there???)

I changed 4 variables in php.ini to accomodate the bigger file size:

max_execution_time=120
post_max_size=65M
upload_max_filesize=65M
memory_limit =65M

I changed the rights on the tmp file upload directory so that everyone
can write to it just to be sure...

Still I get the error.

Why am I not able to upload those big files?

Why does it take so long for the file to upload to the server? It
happens all on my LAN (no proxies enabled) so it should be faster....
even dloading a file from the internet is faster than this.

Can anyone point out what's wrong here?

Thanks,

Marc
Jul 16 '05 #1
0 3091

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

Similar topics

0
by: camaro77 majau via DotNetMonster.com | last post by:
Sorry by my english but i'm from spain. I have a problem and after search by the web i have know that is due by framework. The message is : setup error "failed to load ressouces from resource...
2
by: Steve M | last post by:
A few users today received the message "The trust relationship between this workstation and the primary domain failed" on their web browser while using an ASP.NET web app. The problem went away...
3
by: GreggTB | last post by:
I've been working on what appears to be a cursed ASP.NET project....so many things have gone wrong that Murphy would be proud. ;-) Anyway, I shut down the project in VS.NET at one point this...
5
by: Vijaya P Krishna | last post by:
Hi, I have a .NET Windows Forms application, written in VB.NET and C#. I am opening a URL from the application using Process.Start(). The URL points to a java servlet running on apache-tomcat....
2
by: javelin | last post by:
I'm studying "Visual Basic Developer's Guid to ASP & IIS", and I am following instructions an pp 72-75. I am creating a WebClass, and enter code as instructed, and it all is entered correctly. ...
5
by: xieliwei | last post by:
I have a freshly installed openSuSe 10.2 with PHP4 from http://download.opensuse.org/repositories/home:/michal-m:/php4/openSUSE_10.2/ (openSuSe abandoned PHP4 since version 10, but I have customers...
5
by: =?Utf-8?B?c25vd2JraWQx?= | last post by:
I have Visual C++ 2005 express edition, I downloaded it from the microsoft website. I am using it for school. I started an assignment in the lab at my school, and for the asssignment I had to...
3
by: Magesh | last post by:
How date-time attributes of a file are represented in the structure "struct stat"? Coz as I noted they found to be unsigned integers and I donno how they are interpreted as date & time in the...
2
by: tvnaidu | last post by:
valgrind error - "failed to start tool 'memcheck' for platform x86-linux" no such file or dir copied all lib and bin files which are generated after I compiled valgrind package, when I run my exe...
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
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.