Rest API file upload - HTTP error 405

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Rest API file upload - HTTP error 405

rui.bullseye
Hi everyone, 
I'm trying to implement file upload to a certain structure using your code example from codeshare, but so far i've been unsucessful.

It keeps sending 405 Method not allowed on every request.

Any suggestions ? 

Best Regards,
Rui

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/c190b698-892d-4cae-98e9-bcfd7743a99b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Rest API file upload - HTTP error 405

rui.bullseye
I've seached the logs and found this related to my submission:

2017-12-22 16:51:00,536 INFO  [com.dotmarketing.portlets.contentlet.business.web.ContentletWebAPIImpl] (http-192.168.150.44-9080-2) Unable to set field File Asset to value send-file.vtl

 

Inside my send-file.vtl, i only have a <form> tag with a input type file, and a button for submission alongside with the "click" function for submission.


sexta-feira, 22 de Dezembro de 2017 às 09:02:13 UTC, Rui Duarte escreveu:
Hi everyone, 
I'm trying to implement file upload to a certain structure using your code example from codeshare, but so far i've been unsucessful.

It keeps sending 405 Method not allowed on every request.

Any suggestions ? 

Best Regards,
Rui

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4715475b-12d8-4ca8-a9eb-d9602423460a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Rest API file upload - HTTP error 405

Chris Falzone-2
Are you sending the correct method?   POST is used for inserting new content and PUT is used for updating existing content.

On Fri, Dec 22, 2017 at 12:28 PM <[hidden email]> wrote:
I've seached the logs and found this related to my submission:

2017-12-22 16:51:00,536 INFO  [com.dotmarketing.portlets.contentlet.business.web.ContentletWebAPIImpl] (http-192.168.150.44-9080-2) Unable to set field File Asset to value send-file.vtl

 

Inside my send-file.vtl, i only have a <form> tag with a input type file, and a button for submission alongside with the "click" function for submission.


sexta-feira, 22 de Dezembro de 2017 às 09:02:13 UTC, Rui Duarte escreveu:
Hi everyone, 
I'm trying to implement file upload to a certain structure using your code example from codeshare, but so far i've been unsucessful.

It keeps sending 405 Method not allowed on every request.

Any suggestions ? 

Best Regards,
Rui

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4715475b-12d8-4ca8-a9eb-d9602423460a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgXBj4eaTZwE5jj%2B7M3KrU%3D_L1S351Xd8%2B1KhH-AVUo1xA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.