Joined February 2013
·
Posted to
Jasny Bootstrap – File upload with existing file
over 1 year
ago
.serialize
doesn't work for sending files. You need to use the FormData object.
Note that FormData isn't available for older browsers. There are some jQuery plugins that send the files using an iframe, but these aren't compatible with the file input plugin.
Posted to
Jasny Bootstrap – File upload with existing file
over 1 year
ago
I'm not familiar with the inner workings of YII. You need to find out (or ask) how the model is updated from $_FILES
and $_POST.
Achievements
508 Karma
103,261 Total ProTip Views
Kilo of Lemmings
Establish a space in the open source hall of fame by getting at least 1000 devs to watch a project
Forked 100
Have a seriously badass project that's been forked at least 100 times
Forked 50
Have a project with a thriving community of users that's been forked at least 50 times
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Altruist
Increase developer well-being by sharing at least 20 open source projects
Forked 20
Have an established project that's been forked at least 20 times
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Cub
Have at least one original jQuery or Prototype open source repo
T-Rex
Have at least one original repo where C is the dominant language
Raven
Have at least one original repo where some form of shell script is the dominant language
With an authentication scheme like this, you're not able to invalidate a token once it hat granted. If an intruder obtained a password and logged in, he can use the JWT forever. Setting a TTL in combination with asking the existing password to change the password while somewhat solve the most dire cases, but it's still a rather weak in comparison with invalidating sessions server side.