Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/52365-split-merge-file/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/52365-split-merge-file/#findComment-258520
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/52365-split-merge-file/#findComment-258575
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.