Domain in image url and problems with uploading some images - laravel

Domain in image URL and problems with uploading some images,
I need to have all the images I upload be referenced through their full web URL (ie: http://www.mywebsite.com/images/image/myimage.jpg). By default, CKEditor only goes for /images/image/myimage.jpg. I found a way to work around this by putting the domain name in the upload file path, however, I think this is causing some files not to be uploaded.
What is the best way to get the domain name in all uploaded image paths and still be able to upload all files?
enter image description here

Related

Images do not display on a static page hosted on AWS S3

In S3, I have an index.html, a CSS file and an images folder with 3 jpg files in it. I cut and pasted the jpgs into the S3 folder. They showed as being there. I set a display policy per the instructions to display to everyone. The page displayed, but the images did not. I get the alt text and the tooltips, but no images. On the page, when I right click the Open Image in New Tab, I get an Access Denied message in XML. The page is: http://s3.amazonaws.com/pittsfordcommunitycenter/index.html
Images display on my development PC. I've tried a lot of things in AWS, including what the documentation suggested. What do I need to change?
This is your index.html URL:
http://s3.amazonaws.com/pittsfordcommunitycenter/index.html
This is your first image URL, which is missing the bucket name:
http://s3.amazonaws.com/images/WheelchairInElevator_w_475.jpg
The image URL should actually be:
http://s3.amazonaws.com/pittsfordcommunitycenter/images/WheelchairInElevator_w_475.jpg
Viewing your page source it looks like, given the location of your index.html file, all your image paths should start with ./images/ instead of ../images/. Since it works on your local machine I'm guessing your local index.html location is different, relative to the image files.
AWS domain links are case sensitive unlike you local machine.
In AWS S3 static Webhosting
../images/WHEELCHAIRINELEVATOR_W_475.JPG is **NOT EQUAL** to
../images/wheelchairinelevator_w_475.jpg

How to get relative URL path for an image uploaded on Oracle WebCenter

We are working on a requirement where we have to show a signature image on an RTF Template. This signature changes for one bank to other, so we are thinking to upload them in UCM server and use the URL's relative path concatenated with Bank Account ID/Number to fetch the image into RTF.
But, when we upload image by following Note 1605094.1 we are not able to get a relative path to hard code in our template file.
Uploaded one image (5486173210.gif), and the URL generated is as below
http://<ucmhost>:<ucmport>/cs/groups/public/documents/digitalmedia/ndg2/mtcz/~edisp/5486173210.gif
And the second image (11223344.gif) got the URL like below
http://<ucmhost>:<ucmport>/cs/groups/public/documents/digitalmedia/mdex/mjiz/~edisp/11223344.gif
We are looking for a common relative URL path, so that we can hard code that in our RTF Template.
URL something like below helps us.
http://<ucmhost>:<ucmport>/cs/groups/public/documents/digitalmedia/logos/5486173210.gif
http://<ucmhost>:<ucmport>/cs/groups/public/documents/digitalmedia/logos/11223344.gif
How about using the GET_FILE service URL?
http://<ucmhost>:<ucmport>/cs/idcplg?IdcService=GET_FILE&RevisionSelectionMethod=LatestReleased&allowInterrupt=1&dDocName=

Image upload error using HTmlExtendEditor

I am using Ajax htmleditorextender to upload a image.
In local solution, able to upload the image successfully.
Once I published into IIS, Image upload is not happening.
Please Find the attached Screenshot for the same.
enter image description here
It seems you set up AjaxFileUploadHandler.axd incorrectly.
Please make sure it is located at the root path of the web site or adjust AjaxFileUploadHandler path in Web.config accordingly.
Here is the relevant issue: https://github.com/DevExpress/AjaxControlToolkit/issues/43#issuecomment-203889967

Displaying an image in Web browser, Ubuntu

I want to display an image on my website.
My website is located in
/var/www/html/mywebsite
The image is located in
/home/user/directory/image.png
I am using codeIgniter and Image src I am passing is same as above.
File/directory permissions are proper but still I am unable to display an image.

Force to upload 1 image with the same name in Codeigniter

I have made an image upload page. this all works smooth.
My problem is when i upload an image called filename.jpg and i upload it again the same image uploads but changes the name to filename1.jpg
how can i force this and make a message with something like 'the image you upload was allready uploaded'
thanks
the change in filename was initiated by the os of server computer
to produce the promt you have to check the file name for duplicates while you are uploading
using the php script
if you have a database which stores the filenames then it is very easy

Resources