creating s3 attachment url pathing