-
Notifications
You must be signed in to change notification settings - Fork 210
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
Added uppy for file uploading #840
Conversation
@jywarren @publiclab/is-reviewers done with it . |
it was same as the old one i just sent a new pr with rebasing. |
Harshith please don't open new PRs each time. It becomes really difficult to manage them. Thanks. |
Ok fine!! |
@jywarren it's done i was also done with the rebase. |
Oh, can you link to the previous PR so we can see what state things were at? Is this now ready for final review and can you attach a screenshot? Or could you try closing this and pushing the latest to the old PR so we stay in one thread? Thank you @harshithpabbati !!! |
Oh, is the Take a Photo button from within Uppy, or is it our own? I think
Uppy has a feature like this that we could potentially use to replace our
own?
…On Wed, Mar 6, 2019 at 10:53 AM Harshith pabbati ***@***.***> wrote:
[image: uppyup]
<https://user-images.githubusercontent.com/43822585/53894336-edf27b00-4055-11e9-9c61-f6f0393efd40.png>
This was the one and let's stay in this thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#840 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ2P8jOcdVoiWGySq_3y0HI2HTPkpks5vT-RcgaJpZM4bgYOZ>
.
|
Yeah it has a option but i was not able to do that. So i didn't removed the previous one. |
ah, what happened that didn't work?
On Wed, Mar 6, 2019 at 11:04 AM Harshith pabbati <notifications@github.com>
wrote:
… Oh, is the Take a Photo button from within Uppy, or is it our own? I think
Uppy has a feature like this that we could potentially use to replace our
own?
… <#m_-7539136547728304416_>
On Wed, Mar 6, 2019 at 10:53 AM Harshith pabbati ***@***.***> wrote:
[image: uppyup]
https://user-images.githubusercontent.com/43822585/53894336-edf27b00-4055-11e9-9c61-f6f0393efd40.png
This was the one and let's stay in this thread. — You are receiving this
because you were mentioned. Reply to this email directly, view it on GitHub
<#840 (comment)
<#840 (comment)>>,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ2P8jOcdVoiWGySq_3y0HI2HTPkpks5vT-RcgaJpZM4bgYOZ
.
Yeah it has a option but i was not able to do that. So i didn't removed
the previous one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#840 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ_-jx04fmnXn8fLqyf5-i026a1o0ks5vT-b6gaJpZM4bgYOZ>
.
|
yeah i tried it many times but i was not able to make it out. |
We can make it as a new issue to add the take photo button using uppy. |
Hmm, what line needed to be changed? Can you leave it in, but comment it out? And then we can continue to work on that here? I think it's best to try to do this as a single PR if possible, but if we get really stuck (even with help from others) we can move on and do it later. Thank you! |
We need to add the new lines in the script to use the web cam.
Something similar to this. I couldn't make I tried it for many times. |
And what exactly went wrong, did you see an error? |
Yeah now i am done with the required changes. |
@jywarren check it out. |
@jywarren I tried it again today but i am unable to do it. |
No output like nothing shows in the webcam video, or nothing is sent to the next step? Can you detail what happens with a few screenshots to illustrate? Are there errors shown when you try, like perhaps a permissions error? Also, are the other means of uploading working fine? Could we add upload by link? |
No worries, we will figure this out! See if someone else from @publiclab/is-reviewers can also help debug a bit? |
Could be that webcam access from a local file is security restricted? Can you try running a local server with the |
I will check through it. |
I was not getting anything. |
Ha did it but have changes in it @harshkhandeparkar |
Harshithz you have to force commit node_modules |
yeah i did it. |
but it was not working. |
it's not taking the images as input. |
Check if it is showing any errors in the browser |
|
Is it showing any errors in the browser console? |
Yeah failing to load css files. |
Screenshot? |
You can comment or delete the part in index.html which links to the manifest.json file. |
In localhost it is fine. |
Oh ok wait |
I checked out your branch, there is no node_modules |
oh ok fine but the problem is with getting the image in the load image.... |
It is not happening since jquery is not working as it is not available
…On Sat 9 Mar, 2019, 9:51 PM Harshith pabbati, ***@***.***> wrote:
oh ok fine but the problem is with getting the image in the load image....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#840 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhKOn_OkGA3tha4sNABX9V-KPdeoakEVks5vU999gaJpZM4bgYOZ>
.
|
even it's not happening in localhost |
If it is not happening on localhost, see if there are any errors in the console, again. |
CORS problem 😭 please search for it on Google. I am busy I cannot help you right now sorry. |
Harshith, you will have to add an option to override the methods in this file https://github.com/publiclab/image-sequencer/blob/main/src/ui/SetInputStep.js. Instead of default methods for dropzone and fileInput, you will have to create an option to upload the file directly to sequencer, instead of sequencer handling the file upload. |
Just a few notes -- i think CORS might stop being an issue if you use I like your solution of a popup. But perhaps it should say "Drag in an image or click here to upload" -- but then, Uppy wouldn't be running in the drag/drop zone itself. So, i think @harshkhandeparkar is right that you may have to refactor your work into SetInputStep. Does that make sense? |
OH, wait - your CORS errors are on trying to upload using image-sequencer/src/ui/SetInputStep.js Lines 10 to 26 in 0865bc4
|
@jywarren I will resume my work I forgot about it. |
This is not working. We'll have to find a new solution. Since we are already developing a new UI, we will do it there. @harshithpabbati |
Fixes #212
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
npm test
@publiclab/is-reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!