Create file via API not working

nservices

Verified User
Joined
Dec 11, 2008
Messages
301
Hi,
am using simple get parameters and it's not save the file:
Code:
https://server01.mydomain.tld:2222/CMD_FILE_MANAGER?json=yes&action=file&path=/&name=yourfile.txt&text=dsadasadaasassaa

but not new file named yourfile.txt that contain dsadasadaasassaa
as I see at: https://www.directadmin.com/features.php?id=652

Regards,
 
Hello,

Tried to send request to CMD_API_FILE_MANAGER? What error do you get?
 
Hi,
1. I try with both CMD_API_FILE_MANAGER and CMD_FILE_MANAGER, it's should work with both
2. json=yes show me "TEXT": ""
mean, text not inserted
DirectAdmin updated, 1.5.4

Regards,
 
OK, I see.

I did not manage to get it working on my end as well. I've ended up with:

/CMD_API_FILE_MANAGER?json=yes&action=edit&path=%2F&name=test.txt&text=dsadasadaasassaa

query, which results in a segmentation fault. I've reported the segmentation fault to Directadmin support. Let's see what they say.
 
The segmentation fault is now fixed by Directadmin developers in 1.54.0, and still I did not manage to get API working on my end.

 
Back
Top