added code to set upload URL and period