I created a file upload form, the form will take an image file from user then save it in the webapp/images/ directory.
The problem is I cannot access the image uploaded by user until jetty is restarted.
Is there anything I should add to the code? Do I need to add anything on the sitemap?
Thanks for the help
try '~jetty-run' instead of 'jetty-run' when running the jetty server from sbt
Related
I'm getting enter image description here this message in the browser
The issue is that your image files are not configured properly. You will want to make sure that you copied the APEX image files to the appropriate directory on the web server.
Based on the error message you are receiving, your image prefix is /i/ so you will need to place the images within that directory on your web server.
Update
If you are having trouble setting up your images directory, you can also use Oracle's CDN to deliver the APEX files. Since you are running APEX 19.1, you would want to set your image prefix to https://static.oracle.com/cdn/apex/19.1.0.00.15/.
You can do this by running the script reset_image_prefix.sql found in the utilities folder of your APEX installation.
When I add images it is stored inside google cloud platform VM correctly.
But I am not able to fetch newly added images in my website.
If I redeploy project with newly added images in assets folder it is showing correctly.
I have verified there is no mistake on frontend or backend side.
Is it not possible to get live image update with VM?
Edit:
I have used Vue.js.
I am storing images inside src/assets folder.
When I save images in my website it is saved at src/assets folder.
I think it can only access things in dist folder after build.
Can you suggest where should I save my file?
I'm making an educateg guess it's some cache issue.
Instead of putting your image files inside the VM you can try storing them in a bucket that's accessible to public. The downside is that it can serve only static files (no PHP or anything).
You have to configure your load balancer to forward all your.domain.com/images/ requests to the bucket but that's actually quite easy. Have a look at my answer asking for such configuration.
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
I have written a plugin for my DjangoCMS site, part of which is displaying a picture uploaded during configuration.
I can see the pictures stored in the servers Media folder. I want for the user to be able to browse from the already uploaded images in addition to being able to select their own for upload.
I have no idea where to start with this!
There's a plugin that does exactly that: https://github.com/stefanfoulis/cmsplugin-filer
Hello all :)
I am currently working on a WP website and a the moment I am working locally with Wampserver.
None of my pictures happen to appear on my website.
Here is the error I get when I put the image url in my browser :
Forbidden
You don't have permission to access
/appetitclic/wp-content/themes/Apc/img/logo.png on this server.
I have no problem accessing phpmyadmin and image from TewentyTwelve template work fine.
Things I have tried :
-Editing (and creating) .htaccess in wp-admin.
-Editing phpmyadmin.conf
-Puting Wamp on online mode
-Working through http://127.0.0.1/ instead of locally.
I am pretty sure the problem doesn't have to so with the code because I have access to the /appetitclic/wp-content/themes/Apc/img/ folder and I see the list of images (not working). I maybe missed one or two workarounds but I am pretty sure I tried most of the common ones.
If you need any info on my setup / configs I have tried ask away.
Thank you very much,
Cheers.
If you start your relative url with a backslash '/' that means go to the servers root folder and work up from there.
Try loosing the leading slash and see what that does.
I have that same problem when I downloaded random images for img preloading testing.
So I went to change permission from no access to read & write (if on Mac then > Get info. You shall see that permission section at the very bottom).
You might use chmod to change permission to particular users.
Hope this help.
I had the same problem today. I created a static webpage put in the html folder of my web server. It turned out that some images could not be loaded. The solution is quite simple. I just right click the image folder and changed the properties to allow readers to view the images.