Nuno Posted May 21, 2007 Share Posted May 21, 2007 Hi i'm new in php but i'm start to work it out i beleave i have a master question to make, here goes... i made a simple form and in that form i had a field (input ) witch sends a file to a email everything works fine if the size of the file were smaller than 2M when the file goes larger an error appears, i know the reason, what i need is to break the file in many parts and put them together when the mail arraives. if someone can help me i really apreciate, i'm stuck here thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/52365-split-merge-file/ Share on other sites More sharing options...
kalivos Posted May 21, 2007 Share Posted May 21, 2007 If your having the user upload a file and it's causing an error before the file is uploaded... you can't operate on the file yet. You can only operate on the file after it has been uploaded. You might consider changing the 2M limit on the form and possibly your php settings if needed. -Kalivos Quote Link to comment https://forums.phpfreaks.com/topic/52365-split-merge-file/#findComment-258520 Share on other sites More sharing options...
Nuno Posted May 21, 2007 Author Share Posted May 21, 2007 let me explain better what heppened, when the file >2M the upload.php sends me a email with all the information that are in the form except the inputfile. i allready put the ini_set('post_max_size', '8M'); ini_set('upload_max_filesize', '8M'); on the upload.php i haved put the .htaccess that i read in other forums (but i don't know very well what that file do), so i called to my server administration and they told me that the cause of that error is because the server is limited to 2M upload file. so they told me to split the files and then merge them when they arrived to my mail. is that make any sense? ( as i told it before i'm new in php language, so many technical language is a little byound my knolege). once angai i tank you in advance. Quote Link to comment https://forums.phpfreaks.com/topic/52365-split-merge-file/#findComment-258575 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.