I have been using CFFILE to upload image files with Chinese characters in the filename, such as 图片.jpg without any issue:
<cffile action="upload" destination="#currentpath#" accept="image/jpeg, image/gif, image/png" fileField="form.upfile" nameconflict="makeunique">
Recently, files started to appear as ??.jpg on the server. However, the name are stored properly in the database. This means that CFFILE is getting the file name properly. But the uploaded file ended up as ??.jpg on the server. I am totally lost as to why all of a sudden it stopped working. The tech support is also lost.
I am wondering if this is a Coldfusion issue or the Plesk Unix server issue? Any insight is appreciated.
Related
I have a codeigniter website, using the latest version of the frame work. I was hosting my website on Azure, and it was working fine - never any issues.
I've just moved all the files to a different server, a linux one - standard normal web hosting type server with cpanel.
My site loads up, however a lot of pages I use that require models, are giving off errors, as if the files do not exist
Unable to locate the model you have specified: UsersModel
Just note : I have read so many articles today, that you need to have uppercase / lowercase and all that stuff, but that's how i already have it setup, it just does not work since changing servers. and it worked perfectly fine yesterday on the Azure server.
Also, when going to the actual file in my address bar, it takes me to the 404 error. not sure if this has anything to do with it?
Did you change your base url in config file ?
All model , controllers, helper ,library name must me capital letter.
If you change server remove index.php from config file where you will get config['index']= ""; and save this.
Still you get error then save base url like domain/project_name/index.php
I implemented the websocket file upload implementation as described on:
http://code.tutsplus.com/tutorials/how-to-create-a-resumable-video-uploade-in-node-js--net-25445
It worked great on my Ubuntu VM. But when I uploaded the code to a CentOS 6 server, images didn't work when they got uploaded. I then tried uploading a large text file, and it was fine. I then tried a ZIP, and it still didn't work. The file on the server and the file being uploaded have exactly the same file size so it appears to work fine. I can only assume some sort of character encoding issue? But basically I am really stuck. Anyone got any ideas?
I'm tempted to try using Ajax to get it working if I haven't made any progress in the next day or 2.
I found solution.I had to apply new chain rule for iptables,and allow server to listen on custom port for web sockets..After that,everything works great. I had to make it permanent.
I have a webapp that updates data in Pardot through one of their API's.
The webapp is coded with Sinatra. The user adds the api url and a csv file with the data that needs to be updated in a form and hits submit. The code parses the csv data and sends it to the url that was provided. The back end server is Windows Server 2008 R2 with IIS 7.5 and HeliconZoo.
Because of performance issues Helicon tech support pointed me to Sinatra::Synchrony and I decided to implement it.
I tested it on multiple different computers with different OS's and browsers and everything works good. Performance was noticeably faster when more then one computer was connected and had submitted the form.
The problem I have is that some users keep getting this error after every time they submit the form:
Error
Helicon Zoo module has caught up an error. Please see the details below.
Worker Status
%WorkerStatus%
Windows error
%WindowsError%
Internal module error
message: HTTP-headers - are expected
job: JobHttp[#3] - /
transportStatus:Online
getErrorMessage:
RAW output bytes:0
RAW output Begin
Empty stderr
End
type: ZooException
file: JobHttp.cpp
line: 266
version: 1.1.57.268
Even though they get this error the data was sent to Pardot successfully.
Here is an entry from the ZooError.log file:
[10/24/2012 10:44:01] HttpProtocolException: HTTP-headers - are expected
job: JobHttp[#212] - /
transportStatus:Online
getErrorMessage:
RAW output bytes:0
RAW output Begin
Empty stderr
End
Where do I even start to troubleshoot this error?
Neil. I'm from Helicon Tech and will try to help you.
Please check the log of your Sinatra application, as according to our logs Sinatra responded with empty response which is not good.
It can be some issue in Zoo, so if you could provide some test application and instructions on how to reproduce such behavior to our helpdesk, we would try to detect and fix it.
I want to thank Tony for offering to help but this error didn't have anything to do with Helicon Zoo. The errors that were displayed on the screen from Zoo weren't any help but this ended up being an issue with my own code.
I was sending data to Pardot that came from a csv file. The users where creating the .csv files from excel by copying from one excel sheet to the other. By doing this excel was copying a bunch of blank lines and these blank lines were then saved into the csv file.
So...once I checked for blank rows in the csv file:
if !row.empty?
I stopped getting the error.
My problem is that i made a file upload with codeigniter, and the allowed file types are: DOC, PDF, RTF, DOCX, and its working fine on localhost.
But when im upload it on a production server, no matter what file type im trieing to upload nothing is excepted.
Did anybody else ran into this problem? or can someone give me a hint?
Thank you
Maybe the production server doesn't recognize your file properly.
You can try to add
'application/octet-stream'
as a new mime type to
APPPATH/config/mimes.php
for 'doc' and etc.
We have a web site with domain http://209.59.154.150/~phnxaudi/,.
To develop this website we have used Joomla framework, and we have used Ckeditor in it, for uploading files(pdf, images etc ).
Also we have installed Ckeditor in the server.
But for some reason we are getting an internal 500 server error.
Could anyone please help us to solve this issue?
I have gotten 500 errors from ckFinder. It almost always is permissions. Ensure that the internet user has read/directory browse/write permissions to the configured "user files" folder.
Try to remove the ".htaccess" file in the ckeditor root directory. This caused the error at our server.
if that's dont work, try to gave 0755 permission to the connector file in core....
when you put your files in the server automatically give 0777 permissions, and I can't execute php file, ...
try with a "hello world" en ckfinder folder and you can see the problem of permission.
sorry for my bad english.
enjoy!
Try to remove the ".htaccess" file in the ckeditor root directory. This caused the error at our server. by Wim Van Loon < this solves the problem
Does the filename contain non-standard characters? Does it have no extension? I've found that if either of those are true, the image will not upload, the logs show nothing, and the CKEditor image upload interface shows a 500 error.
I faced the same issue with my ck_editor app, I was getting a similar type of error.
I tried copying demo application from django-ckeditor repository ck-editor demo application
with all the settings.
I faced two types of errors:-
Not mentioning upload path in the root urls
path('upload/', ImageUploadView.as_view(), name="upload")
import ImageUploadView from the ckeditor_uploader.views
I selected ckeditor_uploader's pillowbackend
This forum was quite useful to solve this problem.
which should have been something like
Hope it solves your problem.
i get this error
after install ckeditor and add the ckuploader '
Note: don't forget before you do the upload to run this commend:
python manage.py collectstatic
you need to get this folder in your project and on it you find this ckeditor folder:
enter image description here
I do this settings and it worked for me:
enter image description here
if you don't work with you just search on youtube
how to upload images in django - ckeditor