Added resource upload PHP code