It is the CppCMS internal server, it should work with normal
web servers.
I think I can add PUT method to ones that is handled by
internal HTTP server.
However in general it is better to upload files via POST.
Artyom
>
>From: "cn...@gr..." <cn...@gr...>
>To: cpp...@li...
>Sent: Fri, April 22, 2011 3:16:57 PM
>Subject: [Cppcms-users] Is PUT method supported?
>
>Hi!
>
>
>A javascript plugin seems to send PUT rather than POST requests to server from
>certain browsers. The author provides a PHP server example code that handles
>uploaded files as follows:
>
>if ($uploaded_file && is_uploaded_file($uploaded_file)) {
>// multipart/formdata uploads (POST method uploads)
>if ($append_file)
>file_put_contents($file_path, fopen($uploaded_file, 'r'), FILE_APPEND);
>else
>move_uploaded_file($uploaded_file, $file_path);
>} else
>// Non-multipart uploads (PUT method support)
>file_put_contents($file_path,fopen('php://input', 'r'), $append_file ?
>FILE_APPEND : 0);
>
>
>
>[ source: https://github.com/blueimp/jQuery-File-Upload ]
>
>
>Does cppcms handle PUT requests? If it does, how do I handle these requests in
>cppcms? If it doesn't, is it a to-do item?
>
>
>Best Regards,
>CN |