zelon88 / HRCloud2

A full-featured home hosted Cloud Drive, Personal Assistant, App Launcher, File Converter, Streamer, Share Tool & More!
https://www.HonestRepair.net
GNU General Public License v3.0
209 stars 44 forks source link

Some conversion OPs require page refresh before file is displayed. #1

Closed zelon88 closed 8 years ago

zelon88 commented 8 years ago

Convert operations especially.

zelon88 commented 8 years ago

Fixed in commit https://github.com/zelon88/HRCloud2/commit/7931b948ecf24abf445d2e6ba8049c293858e94d by adding a sleep after the shell_exec. The current amount of time before HRCloud2 will timeout durng a Unoconv request is 20 seconds. This is represented in cloudCore.php by using a while loop and a counter. Every 2 seconds HRCloud2 checks if the output file exists. After 10 iterations of the while loop HRCloud2 will stop waiting. Extremely large documents or extremely slow servers may still require the refresh button in the top-left of HRCloud2 window to be clicked after conversion is complete. Those conversions would have to be very large for that to happen, therefore it's highly unlikely and could be adjusted for later if needed.