Skip to content
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

in PATCH Funktionen wird die Datei doppelt versendet #6

Open
fegue opened this issue Jul 10, 2024 · 1 comment
Open

in PATCH Funktionen wird die Datei doppelt versendet #6

fegue opened this issue Jul 10, 2024 · 1 comment

Comments

@fegue
Copy link
Contributor

fegue commented Jul 10, 2024

In Detektionen heißt das Feld 'media' und in den Rekordern 'image'.
Um die selbe Patch-Funktion zu verwenden, schicke ich momentan das Bild doppelt.
Die Zeile mit req_body_multipart soll geändert werden

ecopi_api <- function(resource, ..., params = list(), new_data = list(), file_path) {

  ... 
    
  if (missing(file_path)) {
      req_perform(req)
    } else {
      media = curl::form_file(file_path)
      req <- req_body_multipart(req, image = media, media = media)
      req_perform(req)
    }
}
@fegue
Copy link
Contributor Author

fegue commented Jul 10, 2024

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

No branches or pull requests

1 participant