Expand my Community achievements bar.

File upload field not working in AEM 6.4.1

Avatar

Level 8

AEM version 6.4.1.0

File upload field not working. We need ability to upload file from local system and not DAM.

Tried below steps :

1] http://localhost:4502/mnt/overlay/wcm/core/content/sites/properties.html?item=/content/we-retail/it[.... We-Retail has a tab "Thumbnail", Tried on similar lines but getting error :

07.03.2019 11:30:25.933 *ERROR* [0:0:0:0:0:0:0:1 [1551938425928] POST /content/requests/re3/_jcr_content HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception during response processing.

org.apache.sling.api.resource.PersistenceException: Property is protected: jcr:createdBy = admin

and a long stack trace.

2] Tried using fileupload provided in v2 core image component. Not working.

3] Went through the below forum posts

https://forums.adobe.com/thread/2459086

https://forums.adobe.com/thread/2588783

https://stackoverflow.com/questions/54655534/in-aem-6-4-fileupload-coral3-resource-type-is-not-backw...

https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/1035

https://aem.adobemarketingclub.com/customize-touch-ui-dialog-for-image-component/

/apps/core/wcm/components/image/v2/image/cq:dialog/content/items/tabs/items/asset/items/columns/items/column/items/file

https://forums.adobe.com/thread/2593760 ---

https://forums.adobe.com/thread/2584649 --------

http://aem-dev.blogspot.com/2016/08/aem-touch-ui-path-browser-with-preview.html

But none of them are working.

Any thoughts/pointers on this will be really helpful.

4 Replies

Avatar

Level 8

Please ignore the above question. jcr:created property was being explicitly set on page jcr via code  which was causing issues.

Avatar

Level 8

Hi All,

Further requirement on this would be to : create a link to the uploaded file[uploaded from local system, not DAM] in the the page properties dialog, so that on clicking the file uploaded is downloadable.

Any thoughts on how to go about this will be really helpful.

Avatar

Level 10

Can you please post a screenshot of exactly what you want to do. Seems like you want a link on page properties dialog that downloads a file.

Avatar

Level 1

How did you resolve the 500 error? I'm getting the same issue while uploading image from page properties.