admin 5/6/2024 | |
When you upload files manually, outside of PHPRunner app, you need to create a JSON record in the database in the exact format that PHPRunner expects. Make sure that file size is specified also. |
V
|
valdaure author 5/6/2024 |
Thanks for the reply. I did precisely as suggested (see my original question). There is no difference between the database entry in Json format generated by my custom script and the entry generated by PHPRunner (other than random string tagged on to the file name to make the name unique). Your reply nonetheless give me a new potential problem to investigate: how the file size is calculated. Indeed, if the file size as stored in the database is not calculated correctly, the file download fails. My custom script was not calculating the file size correctly. My script was calculating the size of the email file attachment before it was stored in the server's file system. When I modified my script to determine the size of the file as stored on the disk, and include that file size in the database, the files download as expected. Thanks for giving me an idea that led me to the solution. |
admin 5/6/2024 | |
Perfect, thank you for the update! Yes, file size is important. |