Add chgm function, which support the mime type change for files.
Issue 12490. Copy, Delete, Move should not support get requests. Update the code to use post requests.