You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Erwan de FERRIERES (Commented) (JIRA)" <ji...@apache.org> on 2012/03/02 17:43:57 UTC
[jira] [Commented] (OFBIZ-4483) Upload content file with upload
form and on-event-update-area element
[ https://issues.apache.org/jira/browse/OFBIZ-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221037#comment-13221037 ]
Erwan de FERRIERES commented on OFBIZ-4483:
-------------------------------------------
Hi Nicolas,
I tested your patch, it's working well. But before integration, I need it to autodetect the MIME type, and not let the user choose the type.
Regards,
> Upload content file with upload form and on-event-update-area element
> ---------------------------------------------------------------------
>
> Key: OFBIZ-4483
> URL: https://issues.apache.org/jira/browse/OFBIZ-4483
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Nicolas Malin
> Assignee: Erwan de FERRIERES
> Priority: Minor
> Attachments: OFBIZ-4483.patch, OFBIZ-4483.patch, OFBIZ-4483.png
>
>
> At this time, if you have :
> {quote}
> <form target="uploadXXXContent" type="upload">
> <field name="uploadedFile"><file/></field>
> <on-event-update-area area-target="XXX" event-type="submit" area-id="XXX"/>
> </form>
> {quote}
> The called service have an empty uploadFile.
> The problem came from ajaxSubmitUpdateAreas that doesn't compliant with "multi-part"
> To solve it, I added a new jquery plugin : JQuery.upload, create a new javascript function ajaxUploadUpdateAreas and synchronize MacroRenderer.
> I also add an exemple on myportal with view profile (see image).
> The upload plugin have a problem with return type : application/x-json, I extend json controller to return a text/html (http://lagoscript.org/jquery/upload/documentation)
> I analyse sascha jira : OFBIZ-3878. I think it's possible to mixte both issue to have a progressbar when the form is on upload type with js submit, I need more analyse to set good id on js progressbar function.
> Nicolas
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira