Changed fileref.upload and fileref server to accept method for uploading...

..., either POST or PUT