I'm not sure, but I think that you're not allowed to open a file on that location because of security reasons.
you will have to move uploaded files to a location where you can open them first, you will have to use the function move_uploaded_file for that.