Hi guys! It seems the method stopped working. Fortunately, there's a Chrome extension that creates the Submit File button for us: chrome.google.com/webstore/detail/chatgpt-file-uploader/oaogphgfdbdbmhkiplemgehihiiececj/related I've just done a test and the button works just like on the video
@geralddrefahl1747
Жыл бұрын
how do you use this extension
@shayanshamsi7540
Жыл бұрын
Getting the following error when entering the code in the console: Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :30:15
@Mr.AIFella
Жыл бұрын
I have the same thing!
@mukulkanojia8988
Жыл бұрын
getting same error can any one help with this
@girmat.kassie260
Жыл бұрын
@@mukulkanojia8988 asked chatGPT itself and got it fixed.
@wenvu577
Жыл бұрын
Anyone get this fixed?
@Skeeva007
Жыл бұрын
This doesn't seem to work the same in Firefox with getting a console to complete the steps.
@wesk4646
Жыл бұрын
You first screen recording is at 12:34 PM. Just to say. I like it. x)
@ps28648
Жыл бұрын
After I copied and pasted the code into the console and pressed enter, I got an error " Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :28:15" . This is where it is happening: targetElement.parentNode.insertBefore(progress, targetElement); targetElement.parentNode.insertBefore(button, targetElement); Any ideas?
@The_Achieve_Zone
Жыл бұрын
VM133:30 Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :30:15 this error appears when i paste your JS code left in the description
@nataliel8944
Жыл бұрын
I am getting the same error, it was working the other day?
@ThePyCoach
Жыл бұрын
It seems the method stopped working today. I'll see if there's any solution ... in case you're a ChatGPT Plus subscriber, you can use this other method to analyze CSV files: kzitem.info/news/bejne/q46F3IJuoIR-no4
@mar-jj4gb
Жыл бұрын
If ChatGPt updates this wil not work if you are familiar with div class or form class in elements this is where the problem lies. Right clickig into the dialogue box and selecting Inspect will provide some insight into what needs to be done.
@rakly3473
Жыл бұрын
Awesome video! Add the folloing to his prompt to get a download button and instruct ChatGPT to make download file. I've found you have to instruct it to make a download available before you upload your file to have it work properly. Something like -"From my next upload file, do... and make a download file available when I click the red download file button." Next to the green button with the text 'Submit File' add another button in red with the text 'Download File' in white font. When instructed to you will generate the requested file and make it available for download. When the red button is clicked, the download of the file should start.
@ThePyCoach
Жыл бұрын
Thanks. I'll try it out!
@evelynwong9433
Жыл бұрын
Does it work on ChatGPT 4 instead of ChatGPT 3.5?
@anirudhcool11
Жыл бұрын
@@ThePyCoach Getting the following error when entering the code in the console: Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :30:15. Can u please reply to this question?
@Civil_Learning
Жыл бұрын
this method is not working at all. every time i getting error VM207:25 Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :25:15. Please correct it
@jaehoon2
Жыл бұрын
I have the same problem, did you solve it?
@Civil_Learning
Жыл бұрын
@@jaehoon2 yes
@jaehoon2
Жыл бұрын
@@Civil_Learning oh awesome I know Indians are geniuses, they are the best Can you tell me what could be the cause of the problem? I guess the plugin hasn't been released yet, right? From a friend who loves India 😍
@judeLondon
Жыл бұрын
Hi @PyCoach. Having cleared the console, I pasted the following into it and hit enter. I get the error message: VM61:30 Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :30:15 ring any bells ? // Create the button const button = document.createElement('button'); button.innerText = 'Submit File'; button.style.backgroundColor = 'green'; button.style.color = 'white'; button.style.padding = '5px'; button.style.border = 'none'; button.style.borderRadius = '5px'; button.style.margin = '5px'; // Create the progress element const progressElement = document.createElement('progress'); progressElement.style.width = '99%'; progressElement.style.height = '5px'; progressElement.style.backgroundColor = 'grey'; // Create the progress bar const progressBar = document.createElement('div'); progressBar.style.width = '0%'; progressBar.style.height = '100%'; progressBar.style.backgroundColor = 'blue'; // Append the progress bar to the progress element progressElement.appendChild(progressBar); // Find the target element to insert the button and progress element before const targetElement = document.querySelector('.flex.flex-col.w-full.py-2.flex-grow.md\\:py-3.md\\:pl-4'); // Insert the button and progress element before the target element targetElement.parentNode.insertBefore(button, targetElement); targetElement.parentNode.insertBefore(progressElement, targetElement); // Add event listener to the button click event button.addEventListener('click', () => { // Create the file input element const fileInput = document.createElement('input'); fileInput.type = 'file'; fileInput.accept = '.txt, .js, .py, .html, .css, .json, .csv'; // Event listener for file selection fileInput.addEventListener('change', async (event) => { const file = event.target.files[0]; const filename = file.name; // Read file as text const fileContent = await file.text(); // Split file content into chunks of size 15000 const chunkSize = 15000; const numChunks = Math.ceil(fileContent.length / chunkSize); for (let i = 0; i < numChunks; i++) { const start = i * chunkSize; const end = start + chunkSize; const chunk = fileContent.substring(start, end); // Submit the chunk into a conversation await submitConversation(chunk, i + 1, filename); // Update the progress bar progressBar.style.width = `${((i + 1) / numChunks) * 100}%`; } // Check if chatgpt is ready let chatgptReady = false; while (!chatgptReady) { await new Promise((resolve) => setTimeout(resolve, 1000)); chatgptReady = !document.querySelector('.text-2xl > span:not(.invisible)'); } // Turn the progress bar blue progressBar.style.backgroundColor = 'blue'; }); // Trigger the file input click event fileInput.click(); }); // Function to submit conversation async function submitConversation(text, part, filename) { const textarea = document.querySelector("textarea[tabindex='0']"); const enterKeyEvent = new KeyboardEvent('keydown', { bubbles: true, cancelable: true, keyCode: 13, }); textarea.value = `Part ${part} of ${filename}: ${text}`; textarea.dispatchEvent(enterKeyEvent); }
@kerinajiang7647
Жыл бұрын
same question
@pedramghasemi1417
Жыл бұрын
Just use the interpreter
@isagive
Жыл бұрын
you just need to pick the right div to target, the structure of chatgpt always changes try this instead of the current // Find the target element const targetElement = document.querySelector('#prompt-textarea');
@ahmedhusain5415
Жыл бұрын
@@isagiveThank you
@hanskraut2018
Жыл бұрын
the problem is context window / memory size. There are already addons that let you post very high text into differetn junks (superpower gpt plugin dont need this but its a nice try and well done was probably hard need incimentally lerning and longtrerm memory based on account. way less repetition, remembering big code project and more finetuned conversations with acutally knowing your weeknesses and tstrengh and wha you know and dont know and what he said already and did nto say. (underrated) internet search plugins and so on will not fix this major issue. Open AI seems to not train gpt 5 and waste time it seems altho they probably just do some other stuff so probably hopefully they dont waste time and ja they did great so far.........still and then they wont release it for 8 months for unrealistic safety fears while ignoring real world bad things without advancement in GPT corrolated with human development index etc
@guangtingzoeli8330
8 ай бұрын
why it's not working, I copied the code to console and pressed enter, it shows error, submit bar not appearing.
@arbaazchaudhari2337
Жыл бұрын
When uploading the csv file only the Part 1 of it is getting uploaded and not the full csv data . How to upload the full csv part into chatgpt . Please help me to fix it
@miiihaaas
Жыл бұрын
Project suggestion: searchable chat history
@kabutey8132
Жыл бұрын
For the prompt can it be available in a txt format so that we can copy and paste it? KZitem doesn't allow that
@SAKIBZAMAN-xn8wp
Жыл бұрын
It can't work now. I tried several times bt each moment it showed error in the code.
@bhupeshmahara
Жыл бұрын
Is this gone work with ChatGPT 3 also, or just with 3.5 & 4?
@kabutey8132
Жыл бұрын
What about the scam alert you will recieve when trying to paste the chat gpt java script generated in the console??? Has an illicit prompt been injected into the prompt we coppied???
@Scuurpro
7 ай бұрын
thats just normal google chrome webmaster tools
@juanpablocarvallovega5053
Жыл бұрын
hello, cannot find the prompt, where is it?
@TheLoneCamper
Жыл бұрын
Can the code be edited to accept pdf, doc, or other file types?
@bwilliams060
Жыл бұрын
Nice work!
@bkcheif
9 ай бұрын
how would i revert back to original settings?
@debdattachatterjee1395
Жыл бұрын
Uncaught SyntaxError: Identifier 'button' has already been declared
@danielit5845
Жыл бұрын
Good video dude, im gonna share this and add your name
@cyberm7725
Жыл бұрын
"error: Identifier 'button' has already been declared"... this error came after press enter
@ThePyCoach
Жыл бұрын
Just copy/paste the JS code I left in the description of this video.
@kee04O
10 ай бұрын
shocked!so can i upload the pdf if i tell gpt some rules to recognize it in gpt3.5
@senbandi
Жыл бұрын
Thanks for sharing but unfortunatelly I got same error with other people. But after checking web I found that there is an extension for chrome.
@viethungcao5933
Жыл бұрын
What is extension for chrome?
@senbandi
Жыл бұрын
chatgpt file uploader
@QuickQuote
Жыл бұрын
It doesn't work (doesn't add this button)
@kakafrost
Жыл бұрын
hello ! Mine stops at Part 1, am I doing something wrong?
@ThePyCoach
Жыл бұрын
Maybe it's the JS code generated. Try creating the button with the JS code I left on the description.
@kakafrost
Жыл бұрын
@@ThePyCoach Thanks for replying. Sorry I only see the prompt in your description, I am missing something?
@kronosDE
Жыл бұрын
Does not really work because after each part ChatGPT explains everything.
@ThePyCoach
Жыл бұрын
You can stop the explanation and continue with your prompt.
@kronosDE
Жыл бұрын
@@ThePyCoach No you can't I tried. Even when you wait until ChatGPT receives the whole csv, you will get a wrong answer when you ask how many lines it got. This definitely doesn't work.
@TA_Tactics
Жыл бұрын
so cool
@rh9673
Жыл бұрын
It's not working
@rafita930
Жыл бұрын
Ya no tienes tu canal en español?
@ThePyCoach
Жыл бұрын
Por ahora solo estoy activo en este canal :(
@rafita930
Жыл бұрын
@@ThePyCoach no nos olvides, en Udemy tienes tu curso en español me interesa muchísimo.
@lynkster
Жыл бұрын
Noteable plugin much easier
@gunngunn6763
Жыл бұрын
It will not work in normal ChatGpt right?
@TA_Tactics
Жыл бұрын
yeah
@godfather_1994
Жыл бұрын
it works but check also the encoding
@ThePyCoach
Жыл бұрын
It works just fine with the free version of ChatGPT!
@kcfairley
Жыл бұрын
this video is outdated. opeanai has already stopped this from workingk, prove me wrong
@vids9517
Жыл бұрын
VM97:37 Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '.flex.flex-col.w-full.py-2.flex-grow.md:py-3.md:pl-4' is not a valid selector. at :37:26
@tomerk21
Жыл бұрын
I'm getting this error: Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '.flex.flex-col.w-full.py-2.flex-grow.md:py-3.md:pl-4' is not a valid selector. When submitting the code in the console
@danmurray4594
Жыл бұрын
I tweaked the prompt that ends up generating the script as follows: Generate a Js script that creates a button with the text ‘Submit File’ and inserts it into the DOM before an element with the id "chatInput" . The button should have a green background color, white text color, 5px padding, no border, 5px border radius and 5px margin. The script should also create a progress element and insert it into the DOM before the same element. The progress element should have a width of 99%, height of 5px and a grey background color. Inside the progress element, there should be another div element representing the progress bar with a width of 0%, height of 100% and blue background color. When the button is clicked, it should create an input element of type ‘file’ that accepts ‘.txt’, ‘.js’, ‘.py’, ‘.html’, ‘.css’, ‘.json’ and ‘.csv’ files. Once a file is selected, using an async it should be read as text and split into chunks of size 15000. using async Each chunk should be submitted into a conversation by doing the following: async function submitConversation(text, part, filename) { const textarea = document.querySelector("textarea[tabindex='0']"); const enterKeyEvent = new KeyboardEvent("keydown", { bubbles: true, cancelable: true, keyCode: 13, }); textarea.value = `Part ${part} of ${filename}: ${text}`; textarea.dispatchEvent(enterKeyEvent); }. The progress bar should be updated after each chunk is submitted within the for loop as follows progressBar.style.width = `${((i + 1) / numChunks) * 100}%`; and should also check if chatgpt is ready with this code: chatgptReady = false; while (!chatgptReady) { await new Promise((resolve) => setTimeout(resolve, 1000)); chatgptReady = !document.querySelector( ".text-2xl > span:not(.invisible)" Once all chunks have been submitted, the progress bar should turn blue.
Пікірлер: 70