Does GraphQL-go support upload file? - go

As the title, does GraphQL-go support upload files?
Or I must create an endpoint besides my GraphQL-endpoint to POST files?

Related

Strapi: Upload files to a specific media library folder using strapi upload api

I'm trying to upload files to Strapi's media library through its upload api.
Right now, all the files are getting uploaded to "API Uploads" folder.
Is there a way to upload the files to folder of my choice?
I couldn't find any details about it in the documentation.
Currently this is not possible, according to the documentation last updated on December 14, 2022: https://docs.strapi.io/developer-docs/latest/plugins/upload.html#endpoints
Folders are an admin panel feature and are not part of the REST or the GraphQL API. Files uploaded through the REST or GraphQL API are located in the automatically created "API Uploads" folder.
There is a feature request on this, so users can vote: https://feedback.strapi.io/feature-requests/p/support-for-media-folders-in-the-content-api
(In the feature request, there's discussion on how to do it in a hacky way, did not test it myself)
Also, If you have to create many folders (like I had to), you would have to do it manually through the interface, but my solution was to automate it with a script that creates them directly onto the db table.

Restrict file types in Strapi file upload

I'm using Strapi to create an API for a project and one content type has a media field called "image." For obvious reasons, I'd like to restrict the types of file uploads to just images. It seems like it should be easy, but I don't see how to do that anywhere in the documentation. Does anyone else have a solution?

Ajax - Upload multiple files in one request using multipart form-data

what is the best plugin to upload multiple files in one request using multi-part form-data in ajax?
I am trying to upload multiple files in one server call using ajax.
but could not find the plugin to satisfy the requirement.
any suggestions or working examples?

Adding image to the GDrive document header

I've got web-application that works with google docs. App is uploading docs to GDrive with convertation and then i need to add image into converted document's header. How can i do this using GDrive API? I can't download full document or some converted formats, so i need to do this on google server. I am using SDK for PHP.
Google Drive API doesn't provide features to manipulate Google Docs files. What you can do is to modify the original file and upload again with conversion switched on. You can also use Google Apps Script. Please check out Document.header-section for more details.

MailChimp API createCampaign

I have the template i want on a server somewhere, with images and all. How do I just use that as a template? or cant you use a zipped version with all the media like you would when manually setting up a campaign ?
using mailchimp. you will be asked to upload an HTMl or create your own template. if you want you can create your own newsletter in HTML then upload the HTML in your mailchimp.
Minimize your HTML code due to compatibility and use the images that is uploaded in your server by specifying thier location like src="www.domainname.com/location/image.jpg"

Resources