473,385 Members | 2,013 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,385 software developers and data experts.

Storing path to file

Hi,

I have the following problem,

I have a HTML form with 2 different filepicker fields;

In a table I'm trying to store 2 different references to 2 different files, one to a photo (jpg) and one to a download (zip). I'm using the filepicker from the HTML form to select the file I need and let php store only the filename and extension into the table.

For the photo part all is working fine but when I tried to do the same with the download part, trying to refer to a .zip file of 85MB, the data is not stored into the table.

When I try to do the same with a smaller (112kb) .zip file everything works like a charme, wich doesn't make any sense to me because I'm not actually storing the file in the table, I just insert the filename.

I'm lost,

Anybody any ideas?

Cheers,

Paul
Aug 26 '10 #1

✓ answered by Jerry Winston

This is actually not a DB problem (of course because there's no data stored in the db). It's an web server (Apache?) issue. I'm not sure which server you're using, but if it's Apache you will need to check the LimitRequestBody directive. I can't recall off the top of my head but I think the default limit is 1MB. If you're using IIS 6.0 check this link.

I hope this fixes your problem. In any case this thread might be moved to help others find it in the Server category (If you let us know which server you're using)

4 2162
Jerry Winston
145 Expert 100+
This is actually not a DB problem (of course because there's no data stored in the db). It's an web server (Apache?) issue. I'm not sure which server you're using, but if it's Apache you will need to check the LimitRequestBody directive. I can't recall off the top of my head but I think the default limit is 1MB. If you're using IIS 6.0 check this link.

I hope this fixes your problem. In any case this thread might be moved to help others find it in the Server category (If you let us know which server you're using)
Aug 26 '10 #2
Jerry,

Thank you very much for your quick reply, I'll have to check my settings tomorrow at work.

I'm using Apache as my webserver.

I'll let you now if I had any luck!!

Thanks,

Paul
Aug 26 '10 #3
Jerry,

I tried the limitrequestbody directive (putting it between the <directory> </directory> brackets of my download directory in the httpd.conf file) but still I encounter the same problem.

A new row is created in my table (as before) but no data is being transferred to the fields...

Hope you can help me!

Cheers,

Paul
Aug 27 '10 #4
Jerry,

I overlooked a setting in my php.ini file. The post_max_size was set to default (8M), after changing this value it worked like a charme!!

Thanks,

Paul
Aug 27 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: MFA | last post by:
Hi All I have one COM (.dll) for uploading files to server. Its working fine on server A but same code and file not working on server B giving error Path/File access error Can any one advise...
0
by: John G | last post by:
How can I Programmatically access maximum path, file, and sum of both lengths? I am using VB.NET 2003. The PathTooLongException indicates that a path < 248 characters, filename < 260...
1
by: LP | last post by:
If you can't seem to eliminate throwing this exception, then the answer is to look for a different file opened previously with an invalid or missing filename. For example, assume the following...
1
by: Jozef | last post by:
Hello, I have an application that I have packaged up for deployment using the ODE Package and Deployment wizard. When I try to run the set up whether it's on a win9x machine a Win2k machine or...
3
by: gazelle04 | last post by:
I wanted to create a subfolder in a directory and I used the MkDir statement but it gives me an error like "Path/File access error" Here are the codes: MkDir "\\BC123456\Attachments\" &...
1
by: leen | last post by:
helo..i'm az...from kuala lumpur...i would like to ask a question about access...i have doing a project based on access...i have done it successfully but now the problem is size of the file...the...
2
by: klaash | last post by:
I created a program using VB6 which has many dependency JPG files. All files are installed in the same subfolder folder of Program Files folder using Package and Deployment Wizard. in VB6....
6
by: J055 | last post by:
Hi I have the following code. I upload an XML file using the FileUpload object, store the stream in a session so the user gets the chance to confirm some options then pass the stream from the...
3
by: vellyna | last post by:
how to appear path file name? for example, i have select "books" from list, then i browse the file.. after browse the file, i want to appear the path file name that will save the file in a...
3
kZero
by: kZero | last post by:
Hi, i have problem with this code in windows vista intfile = FreeFile Open strDestination For Binary Access Write As #intfile Run-time error '75': Path/File access error
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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...
0
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,...

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.