handle conflicts when putting documents on folders or folders on documents, and chase PHP caching issue when getting filesize