Jump to content

pdf upload form strange problem


hey_happy

Recommended Posts

Hi Guys :)

First sorry for my bad english.

 

I have a strange problem with php upload form.

 

When i click on submit button ( with uploaded pdf ) nothing happens.

The pdf file is 17MB, but with smaller PDF the form works perfectly.

 

Here is the form code:

 

<form id="pdf" name="pdf" method="post" action="" target="_self" enctype="multipart/form-data" >
<p align ="center">
        <input type="hidden" name="app_id" value="<?php print $app_id?>">
        <input type="hidden" name="MAX_FILE_SIZE" value="1000000000000">
        <input type="file" name="file1" value="Upload PDF" device="files" accept="text/pdf" />
        <input type="submit" name="sent" value="Send" />
</p>
</form>

 

at the beginning of the upload.php i have the following lines:

 

$sent = isset($_POST['sent']) ? $_POST['sent'] : false; 

 

When i debug $sent and $_POST i saw that they are empty  : (

 

With smaller PDF works perfectly but now with 17MB pdf $sent is empty,the result from print_r($_POST) is Array() :(

 

in php.ini i changed MAX UPLOAD to 20MB  and then restarted my apache , but i think this doesn't matter.

 

This problem is very strange : )

 

Thanks in advance:)

Link to comment
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.