ODK Collect 10MB limit and PHP

Hi,

I've run into a problem with the 10MB limit in Collect. I'm using a custom
server written in PHP. It seem the isIncomplete tag is non-standard and
PHP doesn't know how to treat it. Is there a way to increase the 10MB limit?

Thank you!
Fergus

You will need to recompile collect with a different limit value that
is used determine how to break up the submissions.

ODK uses other custom tags and depending on what you are doing it
might be worth your time to figure out how to have php properly deal
with custom tags than try and change ODK protocols because otherwise
you will probably be tracking down more of these and you will have to
constantly recompile new versions of ODK releases.

Increasing the size will also cause the upload process to become less
reliable especially on mobile networks that are over used or have
intermittent connectivity. The ODK team has gotten several requests to
lower the size to deal with less reliable networks.

Waylon

··· On Thu, Aug 23, 2012 at 7:17 AM, fleen wrote: > Hi, > > I've run into a problem with the 10MB limit in Collect. I'm using a custom > server written in PHP. It seem the *isIncomplete* tag is non-standard and > PHP doesn't know how to treat it. Is there a way to increase the 10MB limit? > > Thank you! > Fergus

I'm trying to upload forms ODK collect with PHP, could help me with some pointers

··· On Thursday, August 23, 2012 9:17:22 AM UTC-5, fleen wrote: > Hi, > > > I've run into a problem with the 10MB limit in Collect. I'm using a custom server written in PHP. It seem the *isIncomplete* tag is non-standard and PHP doesn't know how to treat it. Is there a way to increase the 10MB limit? > > Thank you! > Fergus

hi Fergus,

can i get your mail...

am trying to set up php aggrigate

Alternatively, if you're rebuilding ODK Collect, you could just remove that
field (which may break compatibility with other tools) and keep the split
limit small.

··· On Thu, Aug 23, 2012 at 9:20 AM, W. Brunette wrote:

You will need to recompile collect with a different limit value that
is used determine how to break up the submissions.

ODK uses other custom tags and depending on what you are doing it
might be worth your time to figure out how to have php properly deal
with custom tags than try and change ODK protocols because otherwise
you will probably be tracking down more of these and you will have to
constantly recompile new versions of ODK releases.

Increasing the size will also cause the upload process to become less
reliable especially on mobile networks that are over used or have
intermittent connectivity. The ODK team has gotten several requests to
lower the size to deal with less reliable networks.

Waylon

On Thu, Aug 23, 2012 at 7:17 AM, fleen fergusleen@gmail.com wrote:

Hi,

I've run into a problem with the 10MB limit in Collect. I'm using a
custom
server written in PHP. It seem the isIncomplete tag is non-standard and
PHP doesn't know how to treat it. Is there a way to increase the 10MB
limit?

Thank you!
Fergus

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

The communications between Collect and the server are described here:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

There are a number of threads with answers to this question. Search the
opendatakit-developers group archive for answers.

··· On Wed, Jun 12, 2013 at 11:25 PM, wrote:

On Thursday, August 23, 2012 9:17:22 AM UTC-5, fleen wrote:

Hi,

I've run into a problem with the 10MB limit in Collect. I'm using a
custom server written in PHP. It seem the isIncomplete tag is
non-standard and PHP doesn't know how to treat it. Is there a way to
increase the 10MB limit?

Thank you!
Fergus

I'm trying to upload forms ODK collect with PHP, could help me with some
pointers

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi, Thanks for the responses. Is there a document that describes the
protocol better than on the openrosa submission page? Or is the code the
best place to figure it out?

My server is pretty simple, based on the Python server, odk_server.py,
which does not contain any splitting code either. I'm using the PHP Global
$_FILES, which creates a file array based on the HTTP POST. I imagine this
would have to be done manually to properly reflect the openrosa protocol.

Many Thanks,
Fergus

··· On Thursday, 23 August 2012 18:06:40 UTC+1, Mitch wrote: > > Alternatively, if you're rebuilding ODK Collect, you could just remove > that field (which may break compatibility with other tools) and keep the > split limit small. > > On Thu, Aug 23, 2012 at 9:20 AM, W. Brunette <wbru...@gmail.com wrote: > >> You will need to recompile collect with a different limit value that >> is used determine how to break up the submissions. >> >> ODK uses other custom tags and depending on what you are doing it >> might be worth your time to figure out how to have php properly deal >> with custom tags than try and change ODK protocols because otherwise >> you will probably be tracking down more of these and you will have to >> constantly recompile new versions of ODK releases. >> >> Increasing the size will also cause the upload process to become less >> reliable especially on mobile networks that are over used or have >> intermittent connectivity. The ODK team has gotten several requests to >> lower the size to deal with less reliable networks. >> >> Waylon >> >> On Thu, Aug 23, 2012 at 7:17 AM, fleen <fergu...@gmail.com > wrote: >> > Hi, >> > >> > I've run into a problem with the 10MB limit in Collect. I'm using a >> custom >> > server written in PHP. It seem the *isIncomplete* tag is non-standard >> and >> > PHP doesn't know how to treat it. Is there a way to increase the 10MB >> limit? >> > >> > Thank you! >> > Fergus >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

More relative than this—the code's the thing
Wherein I'll catch the concept of OpenRosa.

--Apologies to Shakespeare

··· On Fri, Aug 24, 2012 at 7:04 AM, fleen wrote:

Hi, Thanks for the responses. Is there a document that describes the
protocol better than on the openrosa submission page? Or is the code the
best place to figure it out?

My server is pretty simple, based on the Python server, odk_server.py,
which does not contain any splitting code either. I'm using the PHP Global
$_FILES, which creates a file array based on the HTTP POST. I imagine this
would have to be done manually to properly reflect the openrosa protocol.

Many Thanks,
Fergus

On Thursday, 23 August 2012 18:06:40 UTC+1, Mitch wrote:

Alternatively, if you're rebuilding ODK Collect, you could just remove
that field (which may break compatibility with other tools) and keep the
split limit small.

On Thu, Aug 23, 2012 at 9:20 AM, W. Brunette wbru...@gmail.com wrote:

You will need to recompile collect with a different limit value that
is used determine how to break up the submissions.

ODK uses other custom tags and depending on what you are doing it
might be worth your time to figure out how to have php properly deal
with custom tags than try and change ODK protocols because otherwise
you will probably be tracking down more of these and you will have to
constantly recompile new versions of ODK releases.

Increasing the size will also cause the upload process to become less
reliable especially on mobile networks that are over used or have
intermittent connectivity. The ODK team has gotten several requests to
lower the size to deal with less reliable networks.

Waylon

On Thu, Aug 23, 2012 at 7:17 AM, fleen fergu...@gmail.com wrote:

Hi,

I've run into a problem with the 10MB limit in Collect. I'm using a
custom
server written in PHP. It seem the isIncomplete tag is non-standard
and
PHP doesn't know how to treat it. Is there a way to increase the 10MB
limit?

Thank you!
Fergus

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

I take it all back! It was php.ini config parameters... ODK Collect is
working fine with split posts and the PHP $_FILES variable. PHP by default
closes the input connection at 8M.

Parameters that need updating in php.ini listed here:

http://www.php.net/manual/en/features.file-upload.common-pitfalls.php

Thanks for the all the good work, and the carefully crafted poetry :wink:

Fergus

··· On Friday, 24 August 2012 16:53:36 UTC+1, Mitch wrote: > > More relative than this—the code's the thing > Wherein I'll catch the concept of OpenRosa. > > --Apologies to Shakespeare > > On Fri, Aug 24, 2012 at 7:04 AM, fleen <fergu...@gmail.com >wrote: > >> Hi, Thanks for the responses. Is there a document that describes the >> protocol better than on the openrosa submission page? Or is the code the >> best place to figure it out? >> >> My server is pretty simple, based on the Python server, odk_server.py, >> which does not contain any splitting code either. I'm using the PHP Global >> $_FILES, which creates a file array based on the HTTP POST. I imagine this >> would have to be done manually to properly reflect the openrosa protocol. >> >> Many Thanks, >> Fergus >> >> >> On Thursday, 23 August 2012 18:06:40 UTC+1, Mitch wrote: >> >>> Alternatively, if you're rebuilding ODK Collect, you could just remove >>> that field (which may break compatibility with other tools) and keep the >>> split limit small. >>> >>> On Thu, Aug 23, 2012 at 9:20 AM, W. Brunette wrote: >>> >>>> You will need to recompile collect with a different limit value that >>>> is used determine how to break up the submissions. >>>> >>>> ODK uses other custom tags and depending on what you are doing it >>>> might be worth your time to figure out how to have php properly deal >>>> with custom tags than try and change ODK protocols because otherwise >>>> you will probably be tracking down more of these and you will have to >>>> constantly recompile new versions of ODK releases. >>>> >>>> Increasing the size will also cause the upload process to become less >>>> reliable especially on mobile networks that are over used or have >>>> intermittent connectivity. The ODK team has gotten several requests to >>>> lower the size to deal with less reliable networks. >>>> >>>> Waylon >>>> >>>> On Thu, Aug 23, 2012 at 7:17 AM, fleen wrote: >>>> > Hi, >>>> > >>>> > I've run into a problem with the 10MB limit in Collect. I'm using a >>>> custom >>>> > server written in PHP. It seem the *isIncomplete* tag is non-standard >>>> and >>>> > PHP doesn't know how to treat it. Is there a way to increase the 10MB >>>> limit? >>>> > >>>> > Thank you! >>>> > Fergus >>>> >>> >>> >>> >>> -- >>> Mitch Sundt >>> Software Engineer >>> University of Washington >>> mitche...@gmail.com >>> >> > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Good to know that PHP similarly limits submission sizes.

··· On Mon, Aug 27, 2012 at 4:32 PM, fleen wrote:

I take it all back! It was php.ini config parameters... ODK Collect is
working fine with split posts and the PHP $_FILES variable. PHP by default
closes the input connection at 8M.

Parameters that need updating in php.ini listed here:

http://www.php.net/manual/en/features.file-upload.common-pitfalls.php

Thanks for the all the good work, and the carefully crafted poetry :wink:

Fergus

On Friday, 24 August 2012 16:53:36 UTC+1, Mitch wrote:

More relative than this—the code's the thing
Wherein I'll catch the concept of OpenRosa.

--Apologies to Shakespeare

On Fri, Aug 24, 2012 at 7:04 AM, fleen fergu...@gmail.com wrote:

Hi, Thanks for the responses. Is there a document that describes the
protocol better than on the openrosa submission page? Or is the code the
best place to figure it out?

My server is pretty simple, based on the Python server, odk_server.py,
which does not contain any splitting code either. I'm using the PHP Global
$_FILES, which creates a file array based on the HTTP POST. I imagine this
would have to be done manually to properly reflect the openrosa protocol.

Many Thanks,
Fergus

On Thursday, 23 August 2012 18:06:40 UTC+1, Mitch wrote:

Alternatively, if you're rebuilding ODK Collect, you could just remove
that field (which may break compatibility with other tools) and keep the
split limit small.

On Thu, Aug 23, 2012 at 9:20 AM, W. Brunette wbru...@gmail.com wrote:

You will need to recompile collect with a different limit value that
is used determine how to break up the submissions.

ODK uses other custom tags and depending on what you are doing it
might be worth your time to figure out how to have php properly deal
with custom tags than try and change ODK protocols because otherwise
you will probably be tracking down more of these and you will have to
constantly recompile new versions of ODK releases.

Increasing the size will also cause the upload process to become less
reliable especially on mobile networks that are over used or have
intermittent connectivity. The ODK team has gotten several requests to
lower the size to deal with less reliable networks.

Waylon

On Thu, Aug 23, 2012 at 7:17 AM, fleen fergu...@gmail.com wrote:

Hi,

I've run into a problem with the 10MB limit in Collect. I'm using a
custom
server written in PHP. It seem the isIncomplete tag is
non-standard and
PHP doesn't know how to treat it. Is there a way to increase the
10MB limit?

Thank you!
Fergus

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com