You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I had the following code in a ScalatraFilter:
post("/someUrl/") {
val someProp = request.getParamter("someParam")
"<h1>"+someProp+"</h1>"
}
If this was used within a ScalatraFilter with FileUploadSupport, someProp would be null if the POST data was multipart, even if the 'someParam' parameter was set in the querystring contained in the URL. I'm not sure if this is consistent with the servlet API, but I can see the parameter show up if I use request.getQueryString, so I feel like it would be accessible. Either way, I feel like there should be some way of getting getdata in these sorts of conditions, mainly due to the inflexible nature of many client-side file uploading libraries (mainly flash uploaders, passing a CSRF key while using them can be pretty tricky).
The text was updated successfully, but these errors were encountered:
Let's say I had the following code in a ScalatraFilter:
If this was used within a ScalatraFilter with FileUploadSupport, someProp would be null if the POST data was multipart, even if the 'someParam' parameter was set in the querystring contained in the URL. I'm not sure if this is consistent with the servlet API, but I can see the parameter show up if I use request.getQueryString, so I feel like it would be accessible. Either way, I feel like there should be some way of getting getdata in these sorts of conditions, mainly due to the inflexible nature of many client-side file uploading libraries (mainly flash uploaders, passing a CSRF key while using them can be pretty tricky).
The text was updated successfully, but these errors were encountered: