Author: hansbak
Date: Tue May 31 07:29:22 2011
New Revision: 1129519
URL:
http://svn.apache.org/viewvc?rev=1129519&view=revLog:
mimetype not properly set when uploading file without providing mimetype
Modified:
ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml?rev=1129519&r1=1129518&r2=1129519&view=diff==============================================================================
--- ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml (original)
+++ ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml Tue May 31 07:29:22 2011
@@ -51,7 +51,7 @@ under the License.
</if-empty>
<if-empty field="newEntity.mimeTypeId">
- <if-not-empty field="parameters.objectInfo">
+ <if-not-empty field="parameters.uploadedFile">
<call-class-method class-name="org.ofbiz.content.data.DataResourceWorker" method-name="getMimeTypeWithByteBuffer" ret-field="newEntity.mimeTypeId">
<field field="parameters.uploadedFile" type="java.nio.ByteBuffer"/>
</call-class-method>