via api to remote upload

Lyc

New Member
Aug 21, 2016
4
0
1
29
My English isn't very good, please don't mind

I want to upload ISO via PVE api.

I let client can upload ISO file to my server(203.xx.xx.xx) and I hope ISO file can via api post to PVE server.
front-end : client choose ISO and click submit button
back-end : upload to my server -> use api upload ISO to PVE server from my server.

I use this api function
POST /api2/json/nodes/{node}/storage/{storage}/upload
upload_2016-8-21_12-9-50-png.4119



but I don't know tmpfilename format
please help me.
thank you very much
 
I'm not sure what you mean. sorry :(
My English is not very good,I tried to express my problems again

Step:
1. user choose ISO file from front-end and click upload button(123.xx.xx.xx).
2. the ISO file upload to my server(123.xx.xx.xx).
3. hope via PVE API can upload ISO file from my server(123.xx.xx.xx) to PVE server(140.xx.xx.xx)

(123.xx.xx.xx) upload to (140.xx.xx.xx)

thank you very much.
have a nice day!
 
The API description already tells you that this is normally set by PVE's RESTHandler and can only be set when connecting directly to the trusted daemon running on port 80 (which you cannot do remotely). Just don't set that option, and PVE will set it internally & correctly.