uploading a doc file to alfresco using rest api and react js - reactjs

I'm trying to send a document file to alfresco via a simple react js interface with a single upload button like the image. But I don't know how should I approach it. I managed to upload a file using postman but I'm a beginner in this field. What should I do?

Related

How to fetch text file from google drive with json contents React Native

I need to access a simple text file from my google drive in React Native.
I saw in this post about how you can use this link structure to get a photo from google drive: https://drive.google.com/uc?export=view&id=YOUR PHOTO ID. Is there a structure like this to get a text document?
People keep telling me to setup a backend using sqlite or something but it seems so overkill for the very little that I need. I don't need to set data I just need to read it from a URL. Also, I tried doing a backend but from my limited knowledge, I can't use a backend server on iOS.
Any Ideas?

Upload file to Django rest API using Formik in Reactjs

Is it possible to upload file (Image) to Django rest api from Reactjs client using Formik ?
Django/DRF allows to upload file quite easly : https://docs.djangoproject.com/fr/2.2/topics/http/file-uploads/ and for DRF : Django Rest Framework File Upload
As for Formik: ReactJS: How to handle Image / File upload with Formik?

Image upload to firebase storage with React Jodit WYSIWYG Editor

I'm using Jodit to create a WYSIWYG editor. My application is developed on React JS and Firebase handles the database and storage.
I am unable to add a custom function to allow image upload to firebase using Jodit Editor. Is there any possibility to add this directly? I would like to avoid using a function using NodeJs for image uploads only.
Possible workarounds:
Enable the following option within the default image uploader then use a cloud function to convert the base64 string to firebase storage and replace the string with the publicly accessible URL.
"uploader": { "insertImageAsBase64URI": true },
Create a http-accessible endpoint with cloud functions to process the image according to this documentation.

what are the options to fake data during front end development using reactjs

I am exploring the various options to fake the backend so that i can test my frontend. I am using reactjs for my frontend.
I tried using JSON file but not able to retrieve the image files and video files from the path.

Strongloop loopback-component-storage + angularjs file upload

I created a Container model and connected it to an S3 bucket which all works well. I am trying to upload a file using Angular, using the service file generated with lb-ng.
If I do Container.upload({container: 'testbucket'}, {file: file}) call will fire but nothing uploads. Am sure I have just got the params wrong but cannot find any example of the angular library being used, and the official example at https://github.com/strongloop/loopback-example-storage uses a different angular uploader to handle the upload, which I'd like to avoid if possible.
Thanks!

Resources