cck imagefield upload problem? - php

I have a cck field of type "file". I used this for uploading of images. On my local server running on apache, uploading of image using the field is fine. But on the deployed version or the web server, the upload won't work. On the web server, I can select an image and when I hit upload, it will then display the image but when I click on save the image is gone.
Any help is greatly appreciated.
Best regards,

Check the permissions of the sites/default/files directory of your Drupal site (or the directory you've set for file uploads if you changed it). If it's not writeable, Drupal won't be able to save your file on the server.

Related

How to upload .rar or videos to Wampserver with php

I'm trying to upload files to Wampserver using php. I can upload like any kind of text file, excels, html, images and .zip, but when I try to upload .rar or .mp4, even though the POST method on the browser shows a 200 the server doesn't allow it, so the file isn't stored on the server.
What I have to do to allow wampserver to accept some file extensions that I want? Thank you.
Change the settings in the PHP.ini file. You're looking for:
'post_max_size'
'upload_max_filesize'
Set those to what the values you require are.

can't upload image with roxyfileman with php in iis8

I used roxyfileman with tinymce4 in lot of project on wamp and server. but this time I want to run my php code on IIS8.5 , but when i want to upload image the roxyfileman can't do it for me and just give me a simple "error" message. I also can't rename a uploaded image too.any body have any idea about this? how can i resolve this problem?
i check IIS mime type and json mime type were added.
after on day struggling i change my destination folder permisision for iis user , and the problem sloved. and now I can upload iamges and rename them.

Force Wordpress media library to index files uploaded from ACF file upload field

I've created an ACF file upload field, in order to attach pdf and image files to each post I create.
the problem is, when I want to Re-Use those files - they don't appear in the media library, but they do appear in the "uploads" folder on the server.
Is there a way to force the media library to index those files?
They certainly should be appearing in the media library so it sounds like a configuration issue. Are there any errors appearing when you upload the file? Perhaps also check your server logs to make sure there is nothing being reported when you try and upload the file...

Getting a 404 on images uploaded using FTP in Magento

I have recently installed Magento and am using it for the first time. I am trying to uplaod an image to a folder as the new logo in the heading. When I upload the image using FTP the file uploads successfully but I can’t see it in the folder listing in a browser or on the website or if I visit the url for the image. I get a 404 page instead. Everything is getting cached I believe. I have turned off caching in the back end and cleaned out var/cache folder. This is a new one to me as I wouldn’t ahve thoughts ftp uploading an image would or could be cached? I can’t even change the header image on my website.
Im using the hellowired them as a starting point.
Cheers
Check the permissions on the Images and the directory it is in.
Can you verify that it is in the folder that you have uploaded it too?
Can you view it on server browsing the directories?
Finally check that you have type it correctly as Linux box's are CAPS sensitive, this could be why you can't see it also.
Looks like my host migrated my accounts to another server and I was actually updating the old hosting. Thanks for your help.

Permission denied after image upload

I've got a image upload script that works on my Apache on IIS development server, but on the Apache Lunix live server, although the images are uploaded correctly and the MySQL database is updated correctly, I can't view the images.
Viewing the HTML source, checking both the FTP files and the database values, all look OK.
But the image doesn't show, just the white box with the red cross in the corner.
If I try to copy the shortcut of the image and open it in a separate window, I get the following:
I'm not sure what to try next, it seems strange that the files/database/source look good but it just won't show!
I've tried both $HTTP_POST_FILES and $_FILES to upload the images, but both have the same result.
Change the File Permission for images you are uploading, You Apache Server doesn't have permissions to read the image file.
So usually people have Apache Server run as a particular user, which has read (may be write ) access to such content

Categories