Unsolved Upload file to website . i need a sample
-
Hi Guys !
i need to upload a file to website . is there a sample about this ?
-
@Mehmet-AK
what upload methods are allowed on the server?
if it's ftp then you can use qnetworkaccessmamager. for other methods you may need third-party libraries. -
hi the_ . i want to use POST method to upload file .
-
Hi,
Then as @the_ suggested: QNetworkAccessManager::post.
-
@Mehmet-AK
when talking about uploading a file to a website do you mean to do so like you would have done it from a website directly?
In that case you need to use QHttpMultiPart classes to create a request and QNetworkAccessManager to post this request.
See this example. -
thx raven i 'll try it
-
thx sgaist . i'll try it