Constrain what files you can see with angularjs ng-flow - angularjs

I'm trying to implement a flow file uploader but I can't see how to make it that the user can only select image files. I copied the example so I have
<div
data-flow-files-submitted="$flow.upload()"
flow-file-added="!!{png:1,gif:1,jpg:1,jpeg:1}[$file.getExtension()]"
name="introduction-picture-upload">
But I still see all files available in my upload window, not just images. Any help would be appreciated - thanks!

Seems it's
<button
flow-btn
flow-attrs="{accept:'image/*'}">
Not well documented !

Related

Adding local image in Jupyter SQL notebook

Started using Azure data studio and creating documentation for some SQL processes in our system.
As part of that I need to include a flow diagram in the document. Currently I have uploaded an image to a URL and am able to embed the image in document from the URL.
But is there any way to include an image from a local folder? Please assist.
I think this is what you want.
from IPython.display import Image
Image(filename='C:/your_path/your_image.PNG',width=200, height=100)
I was interested in this also. Syntax should be (if you store images in subfolder relative to notebook):
![ssms_subquery](images/16_ssms_subquery.png)
This didn't work for me initially: rendered as a broken image icon.
Things I tried:
Make sure you have a workspace defined for your root folder. Create the folder, then select "File > Add Folder to Workspace ..."
If that does nothing, try closing and restarting ADS. I've found the rendering to be flaky from time to time after awhile or if you have been opening/closing notebooks a lot.
Related topic has been discussed previously for markdown in general (but worth asking again for ADS!), eg. How to display local image in markdown

Link to files form another solution

I want to show a image what is saved in another solution in the same project.
Solution TouchUI have a folder called images.
In Solution WebUI I want to load a image from the folder. How can I do that?
<img src="../WebUI/Images/movieimages/#item.MoviePicture" alt="#item.MovieName" class="img-thumbnail">
gives me a 404. Anybody an idea?
I copied the files to the new solution in stead of linking to another solution.

Using CakePDF Image not showing

I am using CakePHP 2.3.6. I setup everything alright, bootstrap & core files are ok.
Now, the pdf file is generating nicely, but it doesn't have any image. But, my view file has an image, because I want that image in my generated pdf file.
I tried using fullbase=>true, but still my image is not showing in the pdf file
Can anyone help me ?
Thanks
Ok, I got a solution to this. Search for the following line
def("DOMPDF_ENABLE_REMOTE",false);
Make the line like bellow
def("DOMPDF_ENABLE_REMOTE",true);

How to create a web page where I can upload files into the page without a FTP server

Basically my problem is that I need to create a web page for a placement project. this webpage should allow any user to upload either photos or documents into the website and be viewed by any user. a bit like Facebook upload facility.
Does anyone know what will be the best way to go about this, can anyone make any recommendations on how I should go about this. Shall I use JQuery or just pure Javascript.
Any advice or help would be greatly appreciated.
Kind Regards,
So i had some time and i looked at w3schools PHP 5 file upload. The easiest way is to add<form action="upload.php" method="post" enctype="multipart/form-data">
    Select image to upload:
    <input type="file" name="fileToUpload" id="fileToUpload">
    <input type="submit" value="Upload Image" name="submit">
</form> in body of your index.html and create a php file called upload.php. In this script you have presented the 'base line' of how uploading works and how you can limit upload size and kind .... Just read the comments in the code and you will know what i'm talking about. First set in your php.ini file_uploads = On
I hope it works for you. I don't know the reason why i can't put php code here so view it at https://www.w3schools.com/php/php_file_upload.asp the file on server won't expire anytime soon (maybe in next 10years)
With little searching I found this for you.
http://www.roseindia.net/servlets/upload-image.shtml
Hope that can point you in the right direction.
How can I upload files asynchronously?
A lot of these same questions have already been asked, searching has never hurt.

CKEditor image upload - getting the upload file

I was working on a very simple and fast image uploader for CKEditor. It works all like a charm, the only problem now is the actual upload. I thought it would all be easy, but now I am stuck.
I have the CK file-field and figured I could just run an ajax request to my php uploading script, the problem is now: how do i get the file data to upload it. The Ajax does not have the post values, so I am lost.
Please lead me into the right direction.
Thanks very much.
When you use Ajax to post the form, your file upload function should be able to get the values from the form as usual.
For example, see this article: http://www.finalwebsites.com/forums/topic/php-ajax-upload-example
Well, i now used an iFrame with the form in it. Using uplodify in the iframe it put the path to the file in a hidden input which I can extract from the frame and use as the src form my image in CKEditor.

Resources