It is currently 22 April 2025, 12:10 Advanced search

Inviare file da Cloud a remoteFS

Domande e risposte su come utilizzare Instant Developer Cloud al meglio

Inviare file da Cloud a remoteFS

Postby A.Piunti » 10 June 2019, 16:22

Salve,
è possibile avere informazioni per inviare un file da indecloud ad un FS remoto?

Ho provato ad inviare una risorsa interna al progetto scrivendo il seguente codice, ma probabilmente sbaglio qualcosa.
Code: Select all
var test = new App.RemoteFS(app, "TestConnector://myCCFS", "e6666c00-222-222-333-...");
var newFile = test.file("logo.png");
var esito = yield app.fs.file($temp1).put(newFile);


Grazie
User avatar
A.Piunti
 
Posts: 317
Joined: 1 January 2015, 13:20

Re: Inviare file da Cloud a remoteFS

Postby m.sirri » 11 June 2019, 12:52

Cosa vale $temp1?
Cosa succede?
User avatar
m.sirri
Pro Gamma
Pro Gamma
 
Posts: 8574
Joined: 30 September 2010, 17:01
Location: Ozzano dell'Emilia (BO)

Re: Inviare file da Cloud a remoteFS

Postby A.Piunti » 11 June 2019, 14:40

Ciao Matteo,
la risorsa temp1 è un'immagine png, avviando la procedura ho un errore ENOENT; sembra che non trovi l'immagine...

Allego due immagini per maggiore chiarezza
Attachments
temp1.PNG
temp1.PNG (203.64 KiB) Viewed 2544 times
Esito.PNG
Esito.PNG (63.96 KiB) Viewed 2544 times
User avatar
A.Piunti
 
Posts: 317
Joined: 1 January 2015, 13:20

Re: Inviare file da Cloud a remoteFS

Postby m.sirri » 13 June 2019, 7:33

Hai provato a specificare il tipo di file Resource come secondo parametro del metodo file?
User avatar
m.sirri
Pro Gamma
Pro Gamma
 
Posts: 8574
Joined: 30 September 2010, 17:01
Location: Ozzano dell'Emilia (BO)


Return to Tips & Tricks - Cloud

Who is online

Users browsing this forum: No registered users and 9 guests