Re: MultiPart HTTP requests
On Sat, Dec 6, 2014 at 11:44 AM, David Faure fa...@kde.org wrote: On Friday 05 December 2014 16:14:45 Aleix Pol wrote: Hi all, Every now and then I end up having to generate MultiPart HTTP requests to implement some of those fancy HTTP API's to upload images. I know we have many implementation for this, namely one in kipi, then forked in ktp [1], one in kdevplatform reviewboard plugin, and probably some more. In fact I'll have to add another implementation in Kamoso as well. With this e-mail, I wanted to suggest to move such MPForm into KF5 (KIO? KCoreAddons?) so we can re-use it, and maybe hopefully not scare people from implementing such API's, because it helps saving some tricky code anyway. Aleix [1] http://quickgit.kde.org/?p=ktp-text-ui.gita=blobf=image-sharer%2Fmpform.h http://quickgit.kde.org/?p=ktp-text-ui.gita=blobf=image-sharer%2Fmpform.cp p There are more indeed, I made a list at some point: QHttpMultiPart khtml html_formimpl.cpp extragear/graphics/kipi-plugins/*/*mpform* /WebCore/platform/network/FormDataBuilder.cpp and the validator and babelfish plugins need this too. Did you look into QHttpMultiPart? Could it be used for all this? If not, I'd recommend adding what's missing to it. I didn't know about QHttpMultiPart indeed, I'll see what needs to be done in my code to adopt it and try to come to a conclusion. Merci beaucoup, David!! Aleix ___ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
Re: MultiPart HTTP requests
On Friday 05 December 2014 16:14:45 Aleix Pol wrote: Hi all, Every now and then I end up having to generate MultiPart HTTP requests to implement some of those fancy HTTP API's to upload images. I know we have many implementation for this, namely one in kipi, then forked in ktp [1], one in kdevplatform reviewboard plugin, and probably some more. In fact I'll have to add another implementation in Kamoso as well. With this e-mail, I wanted to suggest to move such MPForm into KF5 (KIO? KCoreAddons?) so we can re-use it, and maybe hopefully not scare people from implementing such API's, because it helps saving some tricky code anyway. Aleix [1] http://quickgit.kde.org/?p=ktp-text-ui.gita=blobf=image-sharer%2Fmpform.h http://quickgit.kde.org/?p=ktp-text-ui.gita=blobf=image-sharer%2Fmpform.cp p There are more indeed, I made a list at some point: QHttpMultiPart khtml html_formimpl.cpp extragear/graphics/kipi-plugins/*/*mpform* /WebCore/platform/network/FormDataBuilder.cpp and the validator and babelfish plugins need this too. Did you look into QHttpMultiPart? Could it be used for all this? If not, I'd recommend adding what's missing to it. -- David Faure, fa...@kde.org, http://www.davidfaure.fr Working on KDE Frameworks 5 ___ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
MultiPart HTTP requests
Hi all, Every now and then I end up having to generate MultiPart HTTP requests to implement some of those fancy HTTP API's to upload images. I know we have many implementation for this, namely one in kipi, then forked in ktp [1], one in kdevplatform reviewboard plugin, and probably some more. In fact I'll have to add another implementation in Kamoso as well. With this e-mail, I wanted to suggest to move such MPForm into KF5 (KIO? KCoreAddons?) so we can re-use it, and maybe hopefully not scare people from implementing such API's, because it helps saving some tricky code anyway. Aleix [1] http://quickgit.kde.org/?p=ktp-text-ui.gita=blobf=image-sharer%2Fmpform.h http://quickgit.kde.org/?p=ktp-text-ui.gita=blobf=image-sharer%2Fmpform.cpp ___ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel