search

以前使用uploadify上传文件都没有错误,最近做一个程序,使用uploadify上传log日志文件,大部分都能上传成功,包括formData的参数都能成功,但是有极个别的log文件上传的时候上传不成功。
在服务器端打印 $_POST 和 $_FILES,都为空。
日志文件名称都是统一格式的,日志也都是 utf-8编码,但是有些可以成功,有些不能成功,有哪位大神碰到过,请指点一下,谢谢!


回复讨论(解决方案)

以下是uploadify的debug信息

---SWFUpload Instance Info---Version: 2.2.0 2009-03-25Movie Name: SWFUpload_0Settings:	upload_url:               /index.php/data/datainsql/upfile	flash_url:                /public/swf/uploadify.swf?preventswfcaching=1407894488103	use_query_string:         false	requeue_on_error:         true	http_success:             	assume_success_timeout:   30	file_post_name:           Filedata	post_params:              [object Object]	file_types:               *.log	file_types_description:   请选择日志文件	file_size_limit:          0	file_upload_limit:        0	file_queue_limit:         999	debug:                    true	prevent_swf_caching:      true	button_placeholder_id:    file_upload	button_placeholder:       Not Set	button_image_url:         /index.php/data/datainsql/	button_width:             120	button_height:            30	button_text:              	button_text_style:        color: #000000; font-size: 16pt;	button_text_top_padding:  0	button_text_left_padding: 0	button_action:            -110	button_disabled:          false	custom_settings:          [object Object]Event Handlers:	swfupload_loaded_handler assigned:  false	file_dialog_start_handler assigned: true	file_queued_handler assigned:       true	file_queue_error_handler assigned:  true	upload_start_handler assigned:      true	upload_progress_handler assigned:   true	upload_error_handler assigned:      true	upload_success_handler assigned:    true	upload_complete_handler assigned:   true	debug_handler assigned:             trueSWF DEBUG: SWFUpload Init CompleteSWF DEBUG: SWF DEBUG: ----- SWF DEBUG OUTPUT ----SWF DEBUG: Build Number:           SWFUPLOAD 2.2.0SWF DEBUG: movieName:              SWFUpload_0SWF DEBUG: Upload URL:             /index.php/data/datainsql/upfileSWF DEBUG: File Types String:      *.logSWF DEBUG: Parsed File Types:      logSWF DEBUG: HTTP Success:           0SWF DEBUG: File Types Description: 请选择日志文件 (*.log)SWF DEBUG: File Size Limit:        0 bytesSWF DEBUG: File Upload Limit:      0SWF DEBUG: File Queue Limit:       999SWF DEBUG: Post Params:SWF DEBUG:                         type=rizhiSWF DEBUG: ----- END SWF DEBUG OUTPUT ----SWF DEBUG: Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.logSWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1SWF DEBUG: StartUpload: First file in queueSWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0SWF DEBUG: Global Post Item: type=rizhiSWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /index.php/data/datainsql/upfile for File ID: SWFUpload_0_0SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 589824. Total: 8666287SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4063232. Total: 8666287SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 7340032. Total: 8666287SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 8666287. Total: 8666287SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: {"file":"E:\/web\/kh\/workdata\/\/","type":null,"flag":"error"}SWF DEBUG: Event: uploadComplete : Upload cycle complete.

在服务器端打印 $_POST 和 $_FILES,都为空
是空白,还是空数组?
如果是空数组,则表示上传没有实际进行进行
如果是空白,则表示上传的文件大小超过了 post_max_size 的限定

在服务器端打印 $_POST 和 $_FILES,都为空
是空白,还是空数组?
如果是空数组,则表示上传没有实际进行进行
如果是空白,则表示上传的文件大小超过了 post_max_size 的限定



还需要分别检查各个转发机的max_post_size 踩过这个坑


果然是超大小了,只设置的上传文件大小,没设置POST大小,
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
如何在FastAPI中实现文件上传和处理如何在FastAPI中实现文件上传和处理Jul 28, 2023 pm 03:01 PM

如何在FastAPI中实现文件上传和处理FastAPI是一个现代化的高性能Web框架,简单易用且功能强大,它提供了原生支持文件上传和处理的功能。在本文中,我们将学习如何在FastAPI框架中实现文件上传和处理的功能,并提供代码示例来说明具体的实现步骤。首先,我们需要导入需要的库和模块:fromfastapiimportFastAPI,UploadF

如何在QQ音乐上传歌词如何在QQ音乐上传歌词Feb 23, 2024 pm 11:45 PM

随着数字化时代的到来,音乐平台成为人们获取音乐的主要途径之一。然而,有时候我们在听歌的时候,发现没有歌词是一件十分困扰的事情。很多人都希望在听歌的时候能够显示歌词,以便更好地理解歌曲的内容和情感。而QQ音乐作为国内最大的音乐平台之一,也为用户提供了上传歌词的功能,使得用户可以更好地享受音乐的同时,感受到歌曲的内涵。下面将介绍一下在QQ音乐上如何上传歌词。首先

酷狗上传自己的音乐的简单步骤酷狗上传自己的音乐的简单步骤Mar 25, 2024 pm 10:56 PM

1、打开酷狗音乐,点击个人头像。2、点击右上角设置的图标。3、点击【上传音乐作品】。4、点击【上传作品】。5、选择歌曲,然后点击【下一步】。6、最后点击【上传】即可。

Win10电脑上传速度慢怎么解决Win10电脑上传速度慢怎么解决Jul 01, 2023 am 11:25 AM

  Win10电脑上传速度慢怎么解决?我们在使用电脑的时候可能会觉得自己电脑上传文件的速度非常的慢,那么这是什么情况呢?其实这是因为电脑默认的上传速度为20%,所以才导致上传速度非常慢,很多小伙伴不知道怎么详细操作,小编下面整理了win11格式化c盘操作步骤,如果你感兴趣的话,跟着小编一起往下看看吧!  Win10上传速度慢的解决方法  1、按下win+R调出运行,输入gpedit.msc,回车。  2、选择管理模板,点击网络--Qos数据包计划程序,双击限制可保留带宽。  3、选择已启用,将带

如何提升电脑上传速度如何提升电脑上传速度Jan 15, 2024 pm 06:51 PM

上传速度变得非常慢?相信这是很多朋友用电脑上传东西时候都会遇到的一个问题,在使用电脑传送文件的时候如果遇到网络不稳定,上传的速度就会很慢,那么应该怎么提高网络上传速度呢?下面,小编将电脑上传速度慢的处理方法告诉大家。说到网络速度,我们都知道打开网页的速度,下载速度,其实还有一个上传速度也非常关键,特别是一些用户经常需要上传文件到网盘的,那么上传速度快无疑会给你省下不少时间,那么上传速度慢怎么办?下面,小编给大伙带来了电脑上传速度慢的处理图文。电脑上传速度慢怎么解决点击“开始--运行”或者“窗口键

电脑怎么拍照上传电脑怎么拍照上传Jan 16, 2024 am 10:45 AM

电脑只要安装了摄像头就可以进行拍照,但是有些用户还不知道该怎么拍照上传,现在就给大家具体介绍一下电脑拍照的方法,这样用户得到图片之后想上传到哪里都可以了。电脑怎么拍照上传一、Mac电脑1、打开访达,再点击左边的应用程序。2、打开后点击相机应用。3、点击下方的拍照按钮就可以了。二、Windows电脑1、打开下方搜索框,输入相机。2、接着打开搜索到的应用。3、再点击旁边的拍照按钮就可以了。

如何通过PHP快手API接口,实现视频的播放和上传功能如何通过PHP快手API接口,实现视频的播放和上传功能Jul 21, 2023 pm 04:37 PM

如何通过PHP快手API接口,实现视频的播放和上传功能导语:随着社交媒体的兴起,大众对于视频内容的需求也逐渐增加。快手作为一款以短视频为主题的社交应用,受到了很多用户的喜爱。本文将介绍如何使用PHP编写代码,通过快手API接口实现视频的播放和上传功能。一、获取访问Token在使用快手API接口之前,首先需要获取访问Token。Token是访问API接口的身份

如何在Vue中实现头像上传功能如何在Vue中实现头像上传功能Nov 07, 2023 am 08:01 AM

Vue是一款流行的前端框架,可以用于构建交互性强的应用程序。在开发过程中,上传头像是常见的需求之一。因此,在本文中,我们将介绍如何在Vue中实现头像上传功能,并提供具体的代码示例。使用第三方库为了实现头像上传功能,我们可以使用第三方库,比如vue-upload-component。该库提供了一个上传组件,可以方便地集成到Vue应用程序中。下面是一个简单的示例

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.