[
https://issues.apache.org/jira/browse/SLING-6017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15449194#comment-15449194
]
Ian Boston commented on SLING-6017:
-----------------------------------
Checked and verified with the following curl commands
{code}
# Standard upload to create /content/test correctly.
curl -v -H "X-uploadmode: stream" -F
P1060839.jpg=@/Users/ieb/Desktop/P1060839.jpg
http://admin:admin@localhost:8080/content/test
# Streamed upload with a key value. The key is ignored.
curl -v -H "Sling-uploadmode: stream" -F key1=value1 -F
P1060839.jpg=@/Users/ieb/Desktop/P1060839.jpg -F
PPP1060839.jpg=@/Users/ieb/Desktop/P1060839.jpg -F key2=admin2
http://admin:admin@localhost:8080/content/test
# Streamed upload with a 2 key values. A warning is logged as key2 is not
available when the uploads are streamed.
# 2 files are created * uses P1060839.jpg as per the Sling API and the second
is PPP1060839.jpg
curl -v -H "Sling-uploadmode: stream" -F key1=value1 -F
*=@/Users/ieb/Desktop/P1060839.jpg -F
PPP1060839.jpg=@/Users/ieb/Desktop/P1060839.jpg -F key2=admin2
http://admin:admin@localhost:8080/content/test
{code}
> Streaming Uplads detection of request parameters is wrong.
> ----------------------------------------------------------
>
> Key: SLING-6017
> URL: https://issues.apache.org/jira/browse/SLING-6017
> Project: Sling
> Issue Type: Bug
> Components: Engine, Servlets
> Affects Versions: Servlets Post 2.3.12, Engine 2.6.2
> Reporter: Ian Boston
> Assignee: Ian Boston
>
> The way in which a request field that is not a file upload is detected is
> wrong. Reported in SLING-5948.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)