Changed upload.php to push tick files and sort them according to dimension id