Skip to content
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

Accept type images in input field Fixes#364 #366

Merged
merged 1 commit into from
Oct 5, 2018
Merged

Accept type images in input field Fixes#364 #366

merged 1 commit into from
Oct 5, 2018

Conversation

aashna27
Copy link

@aashna27 aashna27 commented Oct 1, 2018

Fixes: 364

The old input field was accepting all kinds of files
Changes: Added accept attribute to add images only.

@tech4GT
Copy link
Member

tech4GT commented Oct 2, 2018

Thanks a lot for your pull request @aashna27
I'll take a look at this! Meanwhile do try other issues. Thanks! 😄

@tech4GT
Copy link
Member

tech4GT commented Oct 2, 2018

Okay so the accept attribute is not supported on edge as far as I remember, so let's wait to hear from @jywarren
@aashna27 maybe you can look for some workaround for edge.Thanks!

@tech4GT tech4GT requested a review from jywarren October 2, 2018 04:28
@aashna27
Copy link
Author

aashna27 commented Oct 2, 2018

I would like to share a gif of the image upload field.

The earlier one was accepting "All files" for upload.
animated gif-downsized_large 2

The changed one
animated gif-downsized_large 1

@jywarren
Copy link
Member

jywarren commented Oct 5, 2018

Hmm, what happens on edge? Will it still work but just won't limit the file type? Thanks!!!

@tech4GT
Copy link
Member

tech4GT commented Oct 5, 2018

@jywarren I think it just ignores it. I was reading about this and there seems to be no workaround for this, I think we can merge this one!

@jywarren jywarren merged commit 2e7e042 into publiclab:main Oct 5, 2018
@jywarren
Copy link
Member

jywarren commented Oct 5, 2018

🎉

jywarren pushed a commit that referenced this pull request Oct 10, 2018
* added gif feature

* increased frame duration n changed gif btn name

* removed inline css

* improved ui

* #363 Add placeholder option to input (#370)

* Add placeholder option to input , change type of brightness input to number

 Changes to be committed:
	modified:   examples/lib/defaultHtmlStepUi.js
	modified:   src/modules/Brightness/info.json

* change 0% to 0 in brightness placeholder

* Add gamma module (#374)

* Add gamma module

* update description

* Add matrix math module (#358)

* Add matrix math module

* add info.json file

* correct format of module

* Add a constant factor input field

* clone the pixels array

* change default values

* add extra information on convolution module (#381)

* adds default values to input fields for all module steps ( fixes #382 ) (#384)

* added default values to input fields for all module steps

* merged

Signed-off-by: Ankit Singla <asingla590@gmail.com>

* Accept type images in input field #364 (#366)

* gif button name changed

* fixes #383 (#396)

Signed-off-by: Varun Gupta <varun.gupta1798@gmail.com>

* fix (#387)

Signed-off-by: Varun Gupta <varun.gupta1798@gmail.com>

* updated

* Issue #392 Fixes alignment of message in Add step box (#393)

*  Fixes alignment of message in Add step box

* fixes css info id

* updates class selector in demo

* Spacing changes

* correctly regulates the behaviour of all links (#397)

Signed-off-by: Ankit Singla <asingla590@gmail.com>

* enables Save button for an action if any of its input fields gain focus (#394)

* Updated index.html (#379)

* add histogram module (#354)

* add histogram module

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>

* add option to drop gradient

Signed-off-by: Varun Gupta <varun.gupta1798@gmail.com>

* fix bug

Signed-off-by: Varun Gupta <varun.gupta1798@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants