Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jan 01, 2014 12:01 am 
Offline
Newbie

Joined: Tue Dec 31, 2013 11:56 pm
Posts: 2
Hi,

I have a setup where users in a game can create and upload levels, in the form of a long text string.

The string is sent using php post and stored in a database using MySQL. The problem is that strings over 100kb are getting cuttoff.

I followed the Linode "Getting Started" guide to setup my Linode.

I have already uninstalled suhosin, disabled suhosin in php.ini and tried increasing the "suhosin.post.max_value_length" variable to no effect.

Any help or point in the right direction would be much appreciated!

/Robert


Top
   
PostPosted: Wed Jan 01, 2014 1:44 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Robert,
There are some file upload variables in php.ini and potentially in .htaccess

Are all large uploads getting cut off at the exact same point? Will you get the same size upload file if you upload a 101kb file, a 1001kb file and a 10001kb file?

MSJ


Top
   
PostPosted: Wed Jan 01, 2014 2:20 pm 
Offline
Newbie

Joined: Tue Dec 31, 2013 11:56 pm
Posts: 2
Hey MSJ, thanks for answering.

Yes all uploads are getting cut of at the same place.

I did some more testing today and realized the problem might not be caused by php. I created a quick test using the code below, and the entered text was correctly echoed after. The uploads are coming from mobile, so the problem might be originating there. Not sure what else could be causing it :/

Code:
<?php
  if( $_POST["thestring"])
  {
     echo "The String: ". $_POST['thestring'];
     exit();
  }
?>
<html>
<body>
  <form action="<?php $_PHP_SELF ?>" method="POST">

  The String: <input type="text" name="thestring" />

  <input type="submit" />
  </form>
</body>
</html>


Top
   
PostPosted: Wed Jan 01, 2014 2:42 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Try uploading a from your mobile using WiFi instead of the cell service. That should let you see if it's your cell provider causing the problem.

Some browsers will limit the size of input text that is posted so it could be a browser specific issue. You can also check Apache's LimitRequestBody to see if it is limiting your post length.

Have you tried saving the string to a file and uploading a file rather than a string?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group