-
Notifications
You must be signed in to change notification settings - Fork 126
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
Can't upload file #1
Comments
Hello, in users table your tokenIdentifier comes with undefined. To fix this you can change tokenIdentifier inside webhook which is in https.ts file. i had the same issue and i just replaced env variable with my own domain which provided at convex/settings/auth. i dont know why but i just cant read env variables inside this file. other files works fine. for example; tokenIdentifier: |
Oh very good. Your solution working for me. Thank you very much ❤️ |
And why should that cause that error and it just the same thing....I think it might not be the reason for that error. |
Hey,it not working for me, I don't think this is the reason for the error...after doing this am still getting the same error. |
Are you sure you have the same problem we said earlier "undefined" at users tokenIdentifier? |
Now it okay.
…On Tue, Mar 12, 2024, 9:59 PM Özgür Çokçeken ***@***.***> wrote:
Hello, in users table your tokenIdentifier comes with undefined. To fix
this you can change tokenIdentifier inside webhook which is in https.ts
file.
i had the same issue and i just replaced env variable with my own domain
which provided at convex/settings/auth. i dont know why but i just cant
read env variables inside this file. other files works fine.
for example; tokenIdentifier: `https://${process.env.CLERK_HOSTNAME}|${
result.data.id}`, tokenIdentifier: `
https://husky-profet-199.clerk.accounts.dev|${result.data.id}`,
Hey,it not working for me, I don't think this is the reason for the
error...after doing this am still getting the same error.
Are you sure you have the same problem we said earlier "undefined" at
users tokenIdentifier?
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAGKWQJD2T43QA6RUKVDVI3YX5GABAVCNFSM6AAAAABEQUJM2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJSGM2DEMJRGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Another way i found out was
In https.js
|
It's because we need to set CLERK_HOSTNAME in Convex Environment Variables, not in env.local file. Otherwise, tokenIdentifier created will be https://underfined| $=***. But there is another problem, if we upload txt file ,will show the same toast, but the file will still be created. |
Second problems fixed. The reason why the incorrect file type is still uploaded is because we already have a post reqeust to post that file to url, the createFile is just to create an entry in files table. So before post, we must check the fileType first and toast the message, return.
|
please i'm getting the same error, i don't what to do ? |
Hi @webdevcody
Firstly, I thank you for your file-drive web app. This is a wonderful product and I am excited about the stacks that are used in this
But when I run it locally, I create an account, then I create a new organization and upload a file, and the console displays that "can't access this org.." although the image uploaded on file store on convex
I hope to get support from you
Thank you very much!
The text was updated successfully, but these errors were encountered: