Combined upload process for posts and pics, code format