Skip to content

[processing] New algorithm upload a file to server #62910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ValentinBuira
Copy link
Contributor

@ValentinBuira ValentinBuira commented Aug 20, 2025

This PR adds a new algorithm to upload a file to a server. This algorithm can for example be used to automate data publication.

The file is uploaded with a post request through either http or https if the server support it. Authentification is done usingQgsAuthManager`

This algorithm is basically the opposite of the algorithm "Download a file via HTTP(S)" already included in QGIS

The tests are minimal because they would require a server infrastructure for the upload part

Funded jointly by SJiB and the QGIS user group Switzerland

upload file

 * avoid placeholder name
  * guess minetype
  *  doc
  *  optional form name
  * cleanup
@github-actions github-actions bot added this to the 4.0.0 milestone Aug 20, 2025
Copy link
Contributor

github-actions bot commented Aug 20, 2025

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit f7fe042)

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit f7fe042)

🍎 MacOS Qt6 builds

Download MacOS Qt6 builds of this PR for testing.
This installer is not signed, control+click > open the app to avoid the warning
(Built from commit f7fe042)

@ValentinBuira ValentinBuira marked this pull request as ready for review August 21, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants