Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

upload a file and display its content

$
0
0

In my react project, there is a screen where the user can upload a file (excel, csv) from their computer. After uploading, currently, nothing happens. However, I want to print or display whatever text is inside the uploaded on my screen (in any format for now). However, I am not sure how and where I need to store the file for now. How can I achieve this?

This is how I am uploading the file atm:

import Uploady from "@rpldy/uploady";import UploadButton from "@rpldy/upload-button";export function Page() {  return (<div><main><Uploady    destination={{ url: "https://my-server/upload" }}><UploadButton/></Uploady><div></div></main></div>  );}

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>