strip the /uploads part of the URL when handling file uploads