Sunshow Life
回到最初的美好
  • Home
  • Archives
  • Links
  • Tips
  • Projects
  • Documents
  • Gallery
Browse: Home / 上传

上传

Curl上传文件

2009-06-29 15:31 | Posted by Sunshow | Filed Under Linux, Network

curl -H "Expect:" -F "action=upload_mf.php" -F "file=@1246285971.xml;type=text/xml" http://localhost/upload_mf.php 加上"Expect:"的Header是因为Curl会默认带上"Expect: 100-continue",而我用的lighttpd 1.4.18不支持这个Header,会返回417的状态码导致出错 标签:curl, lighttpd, 上传, 文件 相关日志 [转载+整理]WordPress上传文件类型限制解决办法 (1) Windows API移动文件 (0) TestLink文件上传问题修复 (0)

Permalink | Trackback | Leave a response

TestLink文件上传问题修复

2009-02-05 16:52 | Posted by Sunshow | Filed Under PHP

默认安装TestLink完毕后,内置的FCKEditor配置居然是使用ASP的,要将其修改为使用PHP 编辑third_party/fckeditor/fckconfig.js 查找以下行并去掉行首的注释: FCKConfig.ProtectedSource.Add( /<?[sS]*??>/g ) ;    // PHP style server side code 查找以下代码,并将其中的asp改成php var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | pyvar _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php 编辑以下两个文件 third_party/fckeditor/editor/filemanager/browser/default/connectors/php/config.php third_party/fckeditor/editor/filemanager/upload/php/config.php 修改两个变量: $Config['UserFilesPath'] = '/TestLink/userfiles/' [...]

Permalink | Trackback | Leave a response

[转载+整理]WordPress上传文件类型限制解决办法

2007-03-08 17:01 | Posted by Sunshow | Filed Under WordPress

WordPress 2.1 之前的版本修改 wp-includes/functions-post.php Wordpress 2.1 之后的版本修改 wp-includes/functions.php 查找: function wp_check_filetype($filename, $mimes = null) { 在底下的$mimes里加入要添加的文件类型,例如 rar : 'rar' => 'application/rar', 不明白为啥wordpress开发组不将其作为后台自定义功能放开 参考资料: http://www.iyoyo.org/posts/139.html http://www.betalog.com/post/822.html 标签:WordPress, 上传 相关日志 [WordPress]对不同域名使用不同的主题 (0) 插件更新:Ultimate Tag Warrior (2) Anti Spam Image 算术版 (1) WordPress 2.0.5 - Ronan (1) Feedburner Feed Statistics Collector (0)

Permalink | Trackback | 1 Response

GMail & GTalk

Tweets

  • 不知道+1 RT: @_billrice: 今天路上被发了慕容晓晓的演唱会的优惠卷,如果你不知道慕容晓晓是谁,那么你一定知道爱情买卖吧 14 hrs ago
  • 每周四都以为是周三。。 1 day ago
  • 植物大战僵尸javascript版! 真霸气啊http://www.lonelystar.org/pvz/ 1 day ago
  • 反过来一般不成立 RT: @derek_he: @Sunshow 事实是声音特别好听的往往长的难看。。。你去看看电台DJ的照片就明白了 2 days ago
  • 声音巨难听,估计长得也难看 RT: @_billrice: 狠狠的投诉丫的,让丫肉偿你 RT: @Sunshow: 我去,早上打个dell800客服女的巨横,问她有没有客服评价系统,恶狠狠地说没有,太不爽了,老子要投诉 2 days ago
  • More updates...

Subscriptions

Subscribe me
google reader
鲜果
抓虾
bloglines
有道
QQ邮箱
九点

Categories

  • Arsenal
  • C
  • Delphi
  • Game
  • Java
  • Life
  • Linux
  • Network
  • PHP
  • Software
  • WebDev
  • WordPress

RSS Shared Items

  • Nethogs 命令:终端下查看每个进程的带宽占用情况
  • 地球上最神秘的“有关部门”终于露面了!
  • 武汉公交车,无法超越的存在
  • 继罗本是个球后网友又一力作!厄齐尔什么都像!喵喵喵喵喵喵~
  • 娘化的植物大战僵尸

Recommend

  • 乐和彩
  • WebTmp.CN - Joomla 应用入门

Blogroll

  • LIfe iS StRUGgle
  • bianbian coding life
  • 不和谐因素
  • CuteFool.Net - 南子

Recent Comments

  • bianbian.org: 鼓掌,散花~
  • hhdem: 必须顶一个,创业有理,折腾最大
  • cutefool: 恭喜一下~不容易啊
  • billrice: 能后台给哥改个500w么,哥跟你二一添作五
  • Loster: 都是撸总了,好好奋斗吧

Meta

  • 登录
  • 文章 RSS
  • 评论 RSS
  • WordPress.org

Tag Cloud

上海 字体 html 生日 互联网 插件 中国 Delphi ie 中文 bug 轩辕剑 仙剑 搬家 更新 输入法 Arsenal 阿森纳 无线 珊瑚虫 QQ 下载 css 生活 Java 拼音 soff web WordPress firefox android Linux 安装 feed 图片 ubuntu plugin 电影 windows google javascript 主题 手机 冠军杯 工作

Copyright © 2006-2010 Sunshow Life • Powered by Wordpress • Creative Commons

京ICP备05059555号