use move_uploaded file instead of copy
allow to pass callback to specify uploads directory