Uploading a document file during a survey

Hello all,

I was hoping, is there any way to upload a document or attach a document
file (PDF, PPT, etc) during the survey? I think I need to customize the
source code of the ODK collect in order to achieve that. Can somebody help
me with this.

Regards
Shadaab

I don't think that it is possible at the moment and changes would be
required not only in Collect but inside the xml forms itself, which means
changes in JavaRosa as well (and perhaps the validator to validate the new
form).

I would suggest a small android rest application than doing stuff other way
around.

Hi Shadaab,

There is actually some (possibly accidental) support for this. See this
outstanding issue: https://github.com/SEL-Columbia/pyxform/issues/109.

I'm not sure how ODK Collect deals with this but if you edit the XForm and
use "type=application/*", this will work quite nicely for PDFs in Enketo
(in a few browsers, in particular Chrome on non-iOS systems). I once tested
this with ODK Aggregate and I believe Aggregate even shows a nice PDF
preview. The form will also still pass ODK Validate.

Cheers,
Martijn

··· On Friday, June 20, 2014 4:02:47 AM UTC-6, Ayub wrote: > > I don't think that it is possible at the moment and changes would be > required not only in Collect but inside the xml forms itself, which means > changes in JavaRosa as well (and perhaps the validator to validate the new > form). > > I would suggest a small android rest application than doing stuff other > way around. > > > >

ODK Collect lacks the widget to allow arbitrary file attachments (the
widget should launch OI File Manager to pick a file, then copy it into the
appropriate instances folder). XLSForm and Build would also need to
support a generic file picker type.

However, it and ODK Aggregate are otherwise designed to support abitrary
file attachments. The preview support in ODK Aggregate depends upon the
mime associations set up in the browser, not on anything ODK Aggregate does.

··· On Mon, Jun 23, 2014 at 7:25 AM, Martijn van de Rijdt wrote:

Hi Shadaab,

There is actually some (possibly accidental) support for this. See this
outstanding issue: https://github.com/SEL-Columbia/pyxform/issues/109.

I'm not sure how ODK Collect deals with this but if you edit the XForm and
use "type=application/*", this will work quite nicely for PDFs in Enketo
(in a few browsers, in particular Chrome on non-iOS systems). I once tested
this with ODK Aggregate and I believe Aggregate even shows a nice PDF
preview. The form will also still pass ODK Validate.

Cheers,
Martijn

On Friday, June 20, 2014 4:02:47 AM UTC-6, Ayub wrote:

I don't think that it is possible at the moment and changes would be
required not only in Collect but inside the xml forms itself, which means
changes in JavaRosa as well (and perhaps the validator to validate the new
form).

I would suggest a small android rest application than doing stuff other
way around.

--
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

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

My guess is Shadaab wants to send documents to tablets in the field.

··· On Tuesday, June 24, 2014 12:10:21 AM UTC+7, Mitch Sundt wrote: > > ODK Collect lacks the widget to allow arbitrary file attachments (the > widget should launch OI File Manager to pick a file, then copy it into the > appropriate instances folder). XLSForm and Build would also need to > support a generic file picker type. > > However, it and ODK Aggregate are otherwise designed to support abitrary > file attachments. The preview support in ODK Aggregate depends upon the > mime associations set up in the browser, not on anything ODK Aggregate does. > > > > > On Mon, Jun 23, 2014 at 7:25 AM, Martijn van de Rijdt <mar...@enketo.org > wrote: > >> Hi Shadaab, >> >> There is actually some (possibly accidental) support for this. See this >> outstanding issue: https://github.com/SEL-Columbia/pyxform/issues/109. >> >> I'm not sure how ODK Collect deals with this but if you edit the XForm >> and use "type=application/*", this will work quite nicely for PDFs in >> Enketo (in a few browsers, in particular Chrome on non-iOS systems). I once >> tested this with ODK Aggregate and I believe Aggregate even shows a nice >> PDF preview. The form will also still pass ODK Validate. >> >> Cheers, >> Martijn >> >> On Friday, June 20, 2014 4:02:47 AM UTC-6, Ayub wrote: >>> >>> I don't think that it is possible at the moment and changes would be >>> required not only in Collect but inside the xml forms itself, which means >>> changes in JavaRosa as well (and perhaps the validator to validate the new >>> form). >>> >>> I would suggest a small android rest application than doing stuff other >>> way around. >>> >>> >>> >>> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ODK Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

In that case, why not use something like Dropbox or Google Drive to
sync the documents down...

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Mon, Jun 23, 2014 at 10:51 AM, Trung Dang Le trungdangle@gmail.com wrote:

My guess is Shadaab wants to send documents to tablets in the field.

On Tuesday, June 24, 2014 12:10:21 AM UTC+7, Mitch Sundt wrote:

ODK Collect lacks the widget to allow arbitrary file attachments (the
widget should launch OI File Manager to pick a file, then copy it into the
appropriate instances folder). XLSForm and Build would also need to support
a generic file picker type.

However, it and ODK Aggregate are otherwise designed to support abitrary
file attachments. The preview support in ODK Aggregate depends upon the mime
associations set up in the browser, not on anything ODK Aggregate does.

On Mon, Jun 23, 2014 at 7:25 AM, Martijn van de Rijdt mar...@enketo.org wrote:

Hi Shadaab,

There is actually some (possibly accidental) support for this. See this
outstanding issue: https://github.com/SEL-Columbia/pyxform/issues/109.

I'm not sure how ODK Collect deals with this but if you edit the XForm
and use "type=application/*", this will work quite nicely for PDFs in Enketo
(in a few browsers, in particular Chrome on non-iOS systems). I once tested
this with ODK Aggregate and I believe Aggregate even shows a nice PDF
preview. The form will also still pass ODK Validate.

Cheers,
Martijn

On Friday, June 20, 2014 4:02:47 AM UTC-6, Ayub wrote:

I don't think that it is possible at the moment and changes would be
required not only in Collect but inside the xml forms itself, which means
changes in JavaRosa as well (and perhaps the validator to validate the new
form).

I would suggest a small android rest application than doing stuff other
way around.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com

Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

ODK Aggregate accepts any number of documents (media attachments) for a
form definition. You can even keep adding them. These would be pushed down
upon the next sync.

Mitch

··· On Mon, Jun 23, 2014 at 4:08 PM, Yaw Anokwa wrote:

In that case, why not use something like Dropbox or Google Drive to
sync the documents down...

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Jun 23, 2014 at 10:51 AM, Trung Dang Le trungdangle@gmail.com wrote:

My guess is Shadaab wants to send documents to tablets in the field.

On Tuesday, June 24, 2014 12:10:21 AM UTC+7, Mitch Sundt wrote:

ODK Collect lacks the widget to allow arbitrary file attachments (the
widget should launch OI File Manager to pick a file, then copy it into
the
appropriate instances folder). XLSForm and Build would also need to
support
a generic file picker type.

However, it and ODK Aggregate are otherwise designed to support abitrary
file attachments. The preview support in ODK Aggregate depends upon the
mime
associations set up in the browser, not on anything ODK Aggregate does.

On Mon, Jun 23, 2014 at 7:25 AM, Martijn van de Rijdt < mar...@enketo.org> wrote:

Hi Shadaab,

There is actually some (possibly accidental) support for this. See this
outstanding issue: https://github.com/SEL-Columbia/pyxform/issues/109.

I'm not sure how ODK Collect deals with this but if you edit the XForm
and use "type=application/*", this will work quite nicely for PDFs in
Enketo
(in a few browsers, in particular Chrome on non-iOS systems). I once
tested
this with ODK Aggregate and I believe Aggregate even shows a nice PDF
preview. The form will also still pass ODK Validate.

Cheers,
Martijn

On Friday, June 20, 2014 4:02:47 AM UTC-6, Ayub wrote:

I don't think that it is possible at the moment and changes would be
required not only in Collect but inside the xml forms itself, which
means
changes in JavaRosa as well (and perhaps the validator to validate
the new
form).

I would suggest a small android rest application than doing stuff
other
way around.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com

Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to opendatakit...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

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

Hi Shadaad,

Someone dound some solution to attach document file (pdf, gpx,...) in a odk form without customize the source code of the ODK Collect?

We are using:
https://play.google.com/store/apps/details?id=hosm.odk.collect.android
To track and collect data...we want finsh the collection data and stop the tracking and attach the .gpx file to the survey.

Thanks