Fixing cookies on upload.