Is it possible to make computer temporary storage? Weird question,

But is it possible to use your computer as a temporary storage via USB charger. I'm thinking I could use this to download files straight onto the computer from my phone.

Edit:
I mean using the PC as a sort of mount point for my android. This will be like having an SD card however I understand it would probably not be as fast as I want to do this with an USB Charger. I was possibly thinking of this to download files bigger that my phone and sd's capacity.

Is this in anyway possible?
MTP is the protocol in which the phone can transfer files from your phone to your computer (and vice versa). If it is a Windows computer, you should be able to plug your phone in and access and modify the files from the computer section in the file explorer. A pop up on your phone may ask you what protocol to use (for security reasons) and your phone's files can't be accessed until you select MTP. Macs don't support MTP (last I checked). You may also want to use a wifi file transfer app, if that is more convenient.