Drag drop URLs only parses images, and ignores files

This commit is contained in:
Yousef Khadadeh 2025-10-09 16:56:05 +03:00
parent 32a654b731
commit 27d334e234
10 changed files with 43 additions and 13 deletions

View file

@ -26,6 +26,8 @@ std::shared_ptr<FileDownloader::DownloadData> FileDownloader::download_data_from
h.eHandle = curl_easy_init();
curl_easy_setopt(h.eHandle, CURLOPT_URL, url.data());
curl_easy_setopt(h.eHandle, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(h.eHandle, CURLOPT_FOLLOWLOCATION, CURLFOLLOW_ALL);
curl_easy_setopt(h.eHandle, CURLOPT_USERAGENT, "InfiniPaint/1.0");
disable_ssl_verification(h.eHandle);
save_to_string(h.eHandle, &h.data->str);