Cannot find the create & add new photo under content in graphql - graphql

I just got started with graphql and after creating the author model, I head into content to create a new photo for the Author model but in the Photo section, I can only find the Add existing Photo without the Create & add new Photo which is hindering me from adding a new photo.
Does anyone know why this is? and can you please tell if there is another way to add a new photo because i have none existing

Related

aberezkin/ng2-image-upload how can I prepopulate the image

In angular2 using aberezkin/ng2-image-upload
I have in my template
<image-upload
[max]="1"
[url]="uploadUrl"
[preview]="true"
[buttonCaption]="'Select Images!'"
[dropBoxMessage]="'Drop your images here!'"
(onFileUploadFinish)="imageUploaded($event)"
(onRemove)="imageRemoved($event)"
(isPending)="disableSendButton($event)"
></image-upload>
This is part of a larger form for an e-commerce site's product capture/edit screen including this image upload
It's all great for a new product and a new image but if I have to edit an existing product and thus have the data from the server for that product, including the image, how can I pre-populate image-upload with this image thus allowing a user to keep it or delete it/change it?
Also is there a way to filter file type allowed?
So you want to let user select the image and able to change it befor Uploading
I made a simple example of preview and uploading image I think it will be helpful for you
Preview and uploade image angular2

Delete one slide from a Google Presentation using API

How is it possible to delete a slide from a Google Presentation using Google API?
In https://developers.google.com/slides/samples/slides it is said: The Slides API allows you to create, move, and delete slides. However, I'm unable to find how to do it.
You can use DeleteObjectRequest for tihs https://developers.google.com/slides/reference/rest/v1/presentations/request#DeleteObjectRequest
Pass your slide id to objectId.
In google app script you can do:
var presentation = SlidesApp.openById("23423423lksdjfsdlkfj");
var slides = presentation.getSlides();
slides[0].remove(); // Remove the first slide
You have to put the proper file id from the long part of the URL of the slide document.

Orchard CMS - Blog Post Featured Image

I've read the various questions regarding this but couldn't not make any any progress. I'm new to Orchard so maybe I'm doing something incorrectly.
The goal is to show a "featured" image for each post in the Blog Home Page (Summary).
The first thing I did was to add a new content type for Image Gallery, following the directions at the link: http://docs.orchardproject.net/Documentation/Creating-an-image-gallery
Then I edited the Blog Post Content Definition, adding the new content type Media Library Picker Field that I created in step 1.
Now on each post there is the ability to Add a new Image.
Now I want that selected image to show up on the Blog Summary view & in the individual Blog Post view.
I followed the direction at the link below, by adding the new element - to the placement info file in my theme.
Image not appearing from a Content Part with a Media Picker Field
Still no luck...what I am missing here???
Thanks for the input
Just add a MediaLibraryPickerField directly to the BlogPost Content Type. That's it.
You don't need anything else (no "Image Gallery Content Type" - that would indeed be another Content Type).
The Display Name for the field can be "Featured Image".
The MediaLibraryPickerField can be configured to not allow multiple content items (allow only one).
placement.info will allow you to decide where you want the field to show, and you already know.
Shape Alternates will allow you to modify the "template", for both Summary and Detail views, if needed.

Access 2013 Can't display image from attachment when first opening the database

Having searched vigorously for an answer without result and given the strangeness of the issue, I feel posting a new question is the only hope for getting this resolved.
I have a table with products (ProductName and ProductImage) The image is an attachment field.
I have a search Form (unbound) with a listbox that displays a list of these products (column 1=ID, column 2=Productname, column3=ProductImage)
I have an image control that displays the image of the product with the following code in the ON LOAD event of the form and the AFTER UPDATE event of the listbox.
Me.imgProduct.Picture = Me.lstProduct.Column(3)
And it works, the image gets displayed when the form is loaded and when the selection is changed... At least until I close and reopen the database.
When I freshly open the database and open the form, I get the following error: Runtime-error 2220 Microsoft Access can't open the file product1.png
When I add a random new attachment to a new attachment FIELD or OLE object to ANY table, it works again without flaw.
Please, can somebody explain what's happening here? Is it to do with directory permissions or something? How to resolve this?
Thanks!
I decided to abandon attachment field and am working with links to the images instead.
Question isn't solved, but the problem is.

Codeigniter image gallery

First sorry if its a stupid guestion but im a really big beginner.
I would like to make an image gallyer similar to facebook, but what i dont really understand is te logic.
I made a multi image upload, it saves the image nam and extension to the database with a title .
A folder is created by the title name.
My problem is i dont know how to select them.
What i mean a person uploads 20 images in folder hello, on the page show the hello with one of the thumbnails and when i click it redirects me to the other pictures.
So tihs is the logic what i dont really understand, and i dont want anybody to write this for me, i only would like the opinion or a hint form a more expreienced developer.
Thank you
In your DB, keep track of the cover photo for each album. Since you probably want to allow users to name albums you might as well save that in there, too.
Table::albums
- id
- name
- photo_id //cover photo, or even the link to the image can be saved here directly if you don't like joins
- ...
Table::album_has_photos
- id
- album_id
- name
- url
- ...
To view the album overview: in your album controller extract the album names, cover photo links from table::albums and send those to the view;
In your view set up a link around each of the cover photos to a controller that loads the album contents from table::album_has_photos;
Display photos from one album and add visual effects.
Ooptional: add pagination to the album overview.
The best idea would be to keep the url of the images in the db (full url or relative - doesn't matter) and possibly the gallery id (if you're using more than one gallery). Then, you'd use the Database class to select all the image urls and send that data to the view. In the view, you can use a foreach loop to generate an appropriate tag for each of the selected images. After that, you could possibly add a lightbox plugin of some sort to have a nice popups when you click on thumbnails.

Resources