File upload from example returns Missing boundary header

2,936 views
Skip to first unread message

Justin Zhu

unread,
Jul 24, 2012, 3:24:00 AM7/24/12
to play-fr...@googlegroups.com
Using the file upload example here with forms, http://www.playframework.org/documentation/2.0/ScalaFileUpload . When uploading a file, the server shows an error: Missing boundary header.

I'm using a pretty vanilla play server. Help appreciated. Thanks!

Sadache Aldrobi

unread,
Jul 24, 2012, 4:05:21 AM7/24/12
to play-fr...@googlegroups.com
Which version are you using?

On Tue, Jul 24, 2012 at 9:24 AM, Justin Zhu <jus...@zhumour.com> wrote:
Using the file upload example here with forms, http://www.playframework.org/documentation/2.0/ScalaFileUpload . When uploading a file, the server shows an error: Missing boundary header.

I'm using a pretty vanilla play server. Help appreciated. Thanks!

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/h9vfCaqNKoUJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.



--
www.sadekdrobi.com
ʎdoɹʇuǝ

Justin Zhu

unread,
Jul 24, 2012, 12:46:36 PM7/24/12
to play-fr...@googlegroups.com
2.0.2


On Tuesday, July 24, 2012 1:05:21 AM UTC-7, Sadache wrote:
Which version are you using?

On Tue, Jul 24, 2012 at 9:24 AM, Justin Zhu <jus...@zhumour.com> wrote:
Using the file upload example here with forms, http://www.playframework.org/documentation/2.0/ScalaFileUpload . When uploading a file, the server shows an error: Missing boundary header.

I'm using a pretty vanilla play server. Help appreciated. Thanks!

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/h9vfCaqNKoUJ.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.



--
www.sadekdrobi.com
ʎdoɹʇuǝ

Sadache Aldrobi

unread,
Jul 24, 2012, 2:43:00 PM7/24/12
to play-fr...@googlegroups.com
I can't reproduce the problem, neither on 2.0.2 nor on master. How are you uploading the file?

To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/tYK7N-fcrbwJ.

To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.



--
www.sadekdrobi.com
ʎdoɹʇuǝ

Jonas K

unread,
Oct 30, 2012, 9:48:11 AM10/30/12
to play-fr...@googlegroups.com


On Tuesday, July 24, 2012 3:24:00 AM UTC-4, Justin Zhu wrote:
Using the file upload example here with forms, http://www.playframework.org/documentation/2.0/ScalaFileUpload . When uploading a file, the server shows an error: Missing boundary header.

I'm using a pretty vanilla play server. Help appreciated. Thanks!

Make sure you are using a POST method in your routes file.

_jonas 

Rajagopal C.R

unread,
Aug 14, 2013, 2:46:43 AM8/14/13
to play-fr...@googlegroups.com
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# Home page
GET     /                                 controllers.Application.index
POST     /                        controllers.Application.upload

# Map static resources from the /public folder to the /assets URL path
GET     /assets/*file               controllers.Assets.at(path="/public", file)

张朔源

unread,
Mar 23, 2015, 10:42:56 AM3/23/15
to play-fr...@googlegroups.com

I just got the same problem, the ans is my Content-Type is wrong. please check the Content-Type firstly
在 2012年7月24日星期二 UTC+8下午3:24:00,Justin Zhu写道:
Reply all
Reply to author
Forward
0 new messages