can't upload image with roxyfileman with php in iis8 - php

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.

Related

Codeigniter mpdf is not displaying images in live server

I have used mpdf for my codeigniter Project to print ticket with header image and it is working in my local machine while I moved source to test server, the images are not displaying in generated PDF.
Is the Permission issue? Is the invalid SSL issue?
I faced the issue once. You may use the image extension .jpg. It seems mpdf in some live server only accepts .jpeg images. Check with .jpeg images
Note: Don't just manually change the extension. The mime type should be of jpeg image(image/jpeg).

Zip.Suspect.MacroDoubleExtension-zippwd FOUND

Everey Time i upload my zip file which is containing my project .This error is come.
How can i upload my project to server .
Help me if you know how to resolve this problem.
Error message:
Zip.Suspect.MacroDoubleExtension-zippwd FOUND
Screenshot:
The ClamAV scanner flags them because they ends in ".txt.html". Normally a file is either text or html, so that's why it's flagged as suspicious.
You may rename those file and then upload again. Otherwise you can upload file via FilezillaFTP account

Rename and saving remote image to server

i'm looking for a simple way to download remote images to my sever, rename and save image name to database.
I know how to download the file easily to my sever
copy('http://example.com/file.jpeg', '/tmp/file.jpeg');
But how to i rename the image while downloading or after download?
I would really appropriate if anyone can tell me a simple way to do this using php
In copy function just change file name:
copy('http://example.com/file.jpeg', '/tmp/any_file_name.jpeg');
I think this should do the Job
rename("/tmp/tmp_file.jpg", "/home/user/login/docs/my_file.jpg");
you have to do this after you downloaded it
or just change the file name while you dwonload it e.g.
copy('http://example.com/file.jpeg', '/tmp/some_name.jpg');

Adding images and displaying using PHP

I have developed a website to upload and display images. And it works fine on the local server , but when I upload it to the web server it wont show the image. But the file has been uploaded to the current location in the server and the path is also fine.
I'd suggest you the full path in the url, literally type it out.
If that does not work, check that the file is readable by setting the permissions of the image file.
I think you may have problem with their format. Check your scripts and make sure their formats to be as same as your local files. If you have a programming mistake, files will save on the server, but their formats may not be actual.
I had this problem before ...

cck imagefield upload problem?

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.

Categories