Comments (8)
Solution: react-dropzone/react-dropzone#1196 (comment)
const { open } = useDropzone()
return (
...
<Dropzone
noClick={true}
...
>
{({ getRootProps, getInputProps, acceptedFiles }) => (
<div
onClick={open}
...
from quill.
Solution: react-dropzone/react-dropzone#1196 (comment)
const { open } = useDropzone() return ( ... <Dropzone noClick={true} ... > {({ getRootProps, getInputProps, acceptedFiles }) => ( <div onClick={open} ...
It works in localhost but not in deployed version
Check this:- https://github.com/Sahil-pvt/PDFAskMate/blob/master/src/components/UploadButton.tsx
from quill.
You have to destructure open
from the useDropzone hook:
import Dropzone, { useDropzone } from 'react-dropzone'
...
const { open } = useDropzone()
You're passing in open as a prop from the dialog which is false.
Can confirm that it 100% works on iPhone.
from quill.
You have to destructure
open
from the useDropzone hook:import Dropzone, { useDropzone } from 'react-dropzone' ... const { open } = useDropzone()
You're passing in open as a prop from the dialog which is false.
Can confirm that it 100% works on iPhone.
Again same problem!!
from quill.
You have to destructure
open
from the useDropzone hook:import Dropzone, { useDropzone } from 'react-dropzone' ... const { open } = useDropzone()
You're passing in open as a prop from the dialog which is false.
Can confirm that it 100% works on iPhone.Again same problem!!
https://gist.github.com/stabildev/6cb5651db2f97274a6ce8f6355679648
from quill.
You have to destructure
open
from the useDropzone hook:import Dropzone, { useDropzone } from 'react-dropzone' ... const { open } = useDropzone()
You're passing in open as a prop from the dialog which is false.
Can confirm that it 100% works on iPhone.Again same problem!!
https://gist.github.com/stabildev/6cb5651db2f97274a6ce8f6355679648
Still not working 🙃, btw thanks for this
from quill.
im faced the same problem and this code is work properly with me:
import { useDropzone } from "react-dropzone";
....
const { acceptedFiles, getRootProps, getInputProps } = useDropzone({
multiple: false,
accept: { "application/pdf": [] },
noClick: isUploading,
onDrop: async (acceptedFile) => {
//put onDrop func logic
},
});
return <div
{...getRootProps()}
className="border h-64 m-4 border-dashed border-gray-300 rounded-lg"
>
.....
<input {...getInputProps()} className="hidden" />
</div>
from quill.
Same problem. not working for me too.
- Next.js v13.2.4,
- react-dropzone v14.2.3
from quill.
Related Issues (20)
- Setting up your account... You will be redirected automatically Loading issue
- File not showing in Prisma studio HOT 1
- Throwing an Error sign even though UserAccount file is created and imported
- Billing info after upgrading returns undefined, and the Upgrade "Diamond" doesn't update on making stripe payment, It is updating in the stripe dashboard though, can anyone help?
- Skeleton not showing HOT 2
- File not showing proper output in Dashboard HOT 7
- .
- when i signin then only loader is working not signin successfully please anyone help me and and another error is Property 'email' does not exist on type 'Promise<KindeUser | null>'.ts(2339) HOT 5
- isLoading is not working it is giving error can anyone help HOT 10
- Issue when uploading PDF in dashboard. HOT 8
- The logged-in user is not showing in Prisma Studio. HOT 2
- ChatWrapper / getFileUploadStatus: Property status does not exist on type HOT 4
- Cannot find module langchain/dist/document_loaders/fs/pdf or its corresponding type declarations HOT 1
- Error [InsufficientQuotaError]: 429 HOT 1
- The logged-in user is not showing in Prisma Studio. im using Neon console HOT 1
- Property 'status' does not exist on type 'Query<{ status: UploadStatus; }, TRPCClientErrorLike<{ input: { fileId: string; }; output: { status: UploadStatus; }; transformer: false; errorShape: DefaultErrorShape; }>, { ...; }, any>'.ts(2339) HOT 3
- Image Source error in image-loader.js HOT 4
- Property 'id' does not exist on type 'KindeUser | null'.ts(2339) on src\app\api\message\route.ts HOT 5
- Object literal may only specify known properties, and 'environment' does not exist in type 'PineconeConfiguration'.ts(2353) HOT 1
- what is the issue why im not able to chat with pdf HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quill.