GithubHelp home page GithubHelp logo

miroj / avatarupload Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 17.0 1.9 MB

ASP.NET MVC 5 avatar upload implementation

License: MIT License

C# 6.20% CSS 0.96% JavaScript 89.41% ASP.NET 0.02% HTML 3.40%

avatarupload's People

Contributors

codative avatar miroj avatar mistertommat avatar williamhallatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avatarupload's Issues

Upload Problem

Hi @MiroJ
I'm using your sample project in my solution but have a problem after "Choose File",crop and click on "SAVEAVATAR" button. Could you help me?
Thanks and Best Regards

problem

localhost:44300 says:

Unable to upload file.
ERRORINFO: Value must be greater than or equal to 0.

Parameter name: bottom

IE

When you select a file in file upload it dont load in IE9. In Chrome it works fine. Does anyone recognize this or know why nothing happens when I chose to open the file using IE9.
Great system though!

Image preview and crop editor image won't show in Firefox after upload selection

Works great in Chrome, IE and Edge but after uploading the image in Firefox, the small preview image and the crop editor image never show up for me. The save button does show up but after selecting I'm getting:

"Unable to upload file.
ERRORINFO: Value must be greater than or equal to 0.
Parameter name: bottom"

Again, works great in all other browsers with both the original source code version I tried and with it implemented into a custom project, it's just Firefox where I'm finding the issue in both.

Other than that, great job to the authors!

Database Issue

@MiroJ

By default the project assumes you are using SQLServer 2012. This can be overcome by replacing the existing connection string in web.config file with

<add name="DefaultConnection" connectionString="Data Source=(localdb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-test-AvatarUpload-20140512111401.mdf;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False" providerName="System.Data.SqlClient" />

Crope Image (one the left) is not updated.

I would like to report a bug that I found. Crop image (on the left) is not updated, if all the elements are not hidden and the user selects different images before save. Do you have any solution for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.