Mime type for emails/outlook do not work

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Mime type for emails/outlook do not work

mbojja
Hi Alex - I want to restrict the file types of an upload control to only certain apps adn one of them is outlook. Using "application/vnd.ms-outlook" do not work. Please let me know what to use to allow emails to be uploaded

Thanks
Manish

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/fc895fd3-ea46-42a4-a7a2-01cf501c7dba%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mime type for emails/outlook do not work

Alessandro  Vernet
Administrator
Hi Manish,

I am not sure to understand your use case. Can you maybe give us an example
of what file you want to accept or not accept, and what you are seeing now?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1591220543141-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Mime type for emails/outlook do not work

mbojja
I would like the users to upload only .msg and .doc files

On Thu, 4 Jun 2020, 05:42 Alessandro Vernet, <[hidden email]> wrote:
Hi Manish,

I am not sure to understand your use case. Can you maybe give us an example
of what file you want to accept or not accept, and what you are seeing now?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1591220543141-0.post%40n4.nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAN39TsOsOzXqVgimuU392-ZUgewcZcxOqM7t6N__kztkA_AqGw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mime type for emails/outlook do not work

mbojja
In reply to this post by Alessandro Vernet
I would like the users to upload only .msg, .txt, .pdf, .xml and .doc files. For this I'm using 

xxf:upload.mediatypes="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.ms-excel application/pdf application/vnd.openxmlformats-officedocument.wordprocessingml.document application/msword application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text text/* application/vnd.ms-outlook application/vnd.ms-outlook-pst"

This still wouldn't allow the .msg or outlook files to be uploaded.

On Thursday, June 4, 2020 at 5:42:27 AM UTC+8, Alessandro Vernet wrote:
Hi Manish,

I am not sure to understand your use case. Can you maybe give us an example
of what file you want to accept or not accept, and what you are seeing now?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/f982ea80-fbc1-40e6-8e7c-9145c95ae882%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mime type for emails/outlook do not work

Alessandro  Vernet
Administrator
Hi Manish,

I am wondering if this is because the correct mediatype isn't associated to
the `.msg` file you upload. That mediatype is provided by the browser. If
you enable the XForms Inspector and you upload a file, what is the value of
the `mediatype` attribute in the data?

As far as the logic goes, up to 2019.2, Orbeon Forms strictly uses the
mediatype it gets from the browser. Starting with 2020.1, produces a
mediatype based on the file extension in those cases where the browser
doesn't doesn't send the correct mediatype, which is something that might
help you if in your case the browser doesn't send a mediatype for `.msg`
files.

https://github.com/orbeon/orbeon-forms/issues/4474

You'll let me know what your findings are.

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1591405931154-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Mime type for emails/outlook do not work

Alessandro  Vernet
Administrator
Hi Manish, did you get a check the mediatype on the uploaded file, and if
you're having this issue because the wrong type is sent by the browser for
`.msg`?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1592001961743-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Mime type for emails/outlook do not work

mbojja
Hi Alex - looks like the browser do not recognise the file type. I had to use octet-stream to upload/download the file.

Thanks

On Saturday, June 13, 2020 at 6:46:06 AM UTC+8, Alessandro Vernet wrote:
Hi Manish, did you get a check the mediatype on the uploaded file, and if
you're having this issue because the wrong type is sent by the browser for
`.msg`?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/828ee60f-31eb-43e8-a637-06640f60c25co%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mime type for emails/outlook do not work

Alessandro  Vernet
Administrator
Hi Manish,

Got it, then this is a case where an improvement we've made in 2020.1 to
infer the mediatype based on the extension when the browser doesn't know
about the mediatype for the file. You can find more about it on:

https://doc.orbeon.com/form-runner/component/attachment#mediatype-determination

Patience, 2020.1 should be be released during the summer ;).

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1592324822166-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet