thetuningspoon Posted August 20, 2013 Share Posted August 20, 2013 I discovered an issue recently, which I haven't seen discussed before. I often use the API to output images directly from image fields without going through the WYSIWYG. When I go to add an image in the admin, I discovered that this image is immediately displayed on the front end, even before I save the page. And if I decide not to save my changes, the image is still saved to the page! This almost burned me a couple times when I uploaded an image just as a demonstration and then later discovered that the image had actually gone up on the site! Is this the intended behavior? Link to comment Share on other sites More sharing options...
kongondo Posted August 20, 2013 Share Posted August 20, 2013 Never noticed this before. Good to know, thanks.. Link to comment Share on other sites More sharing options...
Wanze Posted August 20, 2013 Share Posted August 20, 2013 That's because the image gets uploaded right after selecting the file (or using drag & drop). If you don't want to save the page but still uploaded an image, you need to delete the image and save the page. Link to comment Share on other sites More sharing options...
thetuningspoon Posted August 21, 2013 Author Share Posted August 21, 2013 Hi Wanze, that's what I figured. It doesn't seem like the ideal behavior, though. I don't know enough about how PW works, but it seems like the image should be able to be uploaded without the reference being there before saving. Although my guess is this wouldn't be a trivial thing to change. Link to comment Share on other sites More sharing options...
ryan Posted August 24, 2013 Share Posted August 24, 2013 This is the nature of how the ajax uploading works, as it triggers a page save (though saving only the field you upload to). One way we could solve it is to add a status field to the file/image fieldtypes, giving them a way to identify a file as unpublished. Not sure how simple it will be to implement, but this is one of the things I've had on my list for awhile. If it comes up more often, I'll definitely bump it higher up the priority list. 12 Link to comment Share on other sites More sharing options...
thetuningspoon Posted August 24, 2013 Author Share Posted August 24, 2013 That would be ideal! Thanks for the reply Ryan. Link to comment Share on other sites More sharing options...
Jared Fager Posted March 13, 2014 Share Posted March 13, 2014 Hey Ryan, I'm interested to know if this issue has gotten any more attention, I'm currently working on http://fisherhouse.org and would really love this 3 Link to comment Share on other sites More sharing options...
nghi Posted September 25, 2014 Share Posted September 25, 2014 I'm currently trying out 2.5 and I notice that this issue hasn't been address. I just had a client upload a wrong image on their carousel and it immediately showed on the homepage. and they had to scramble to find a replacement image file. Since the field was setup to allow 1 image and it automatically delete the old one. 1 Link to comment Share on other sites More sharing options...
kongondo Posted September 25, 2014 Share Posted September 25, 2014 Maybe file a feature request on GitHub...That way, Ryan will definitely see it and be reminded Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now