daraja-framework
daraja-framework copied to clipboard
Upload Example (HTML5 Multi file)
I am using lazarus 2.1.0 + FPC 3.3.1, in the DEMO of bootstrap I found 2 problems:
- Uploading a single file is normal, but uploading multiple files at once will cause file corruption. I have tested this phenomenon when uploading two or three files. The file format is exe and rar;
- Uploading a single 3G large file will also cause file corruption;
Hi, many thanks for your bug report! Does the file corruption only happen with FPC 3.3.1? As Lazarus 2.1.0 is bundled with 3.1.0, please check if this has the same problem. FPC 3.3.1 is an unstable / development version so it is not supported by Daraja HTTP Framework.
The internally used TIdHTTPServer component does not support the multipart/form-data encoding yet. (see https://github.com/IndySockets/Indy/issues/138). The demo code is still unsupported example code.
Some test code is available at https://stackoverflow.com/questions/27257577/ - I will try this test server application with multi-file upload and see if it can reproduce the file corruption.