uploadify 上传问题
以前使用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大小,

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to implement file upload and processing in FastAPI FastAPI is a modern, high-performance web framework that is easy to use and powerful. It provides native support for file upload and processing. In this article, we will learn how to implement file upload and processing functions in the FastAPI framework, and provide code examples to illustrate specific implementation steps. First, we need to import the required libraries and modules: fromfastapiimportFastAPI,UploadF

With the advent of the digital age, music platforms have become one of the main ways for people to obtain music. However, sometimes when we listen to songs, we find that there are no lyrics, which is very disturbing. Many people hope that lyrics can be displayed when listening to songs to better understand the content and emotions of the songs. QQ Music, as one of the largest music platforms in China, also provides users with the function of uploading lyrics, so that users can better enjoy music and feel the connotation of the songs. The following will introduce how to upload lyrics on QQ Music. first

1. Open Kugou Music and click on your profile picture. 2. Click the settings icon in the upper right corner. 3. Click [Upload Music Works]. 4. Click [Upload Works]. 5. Select the song and click [Next]. 6. Finally, click [Upload].

How to solve the slow upload speed of Win10 computer? When we use the computer, we may feel that the file upload speed of our computer is very slow. So what is the situation? In fact, this is because the default upload speed of the computer is 20%, so the upload speed is very slow. Many friends do not know how to operate in detail. The editor has compiled the steps to format the C drive in Win11 below. If you are interested, follow Let’s take a look below! Solution to the slow upload speed of Win10 1. Press win+R to call up run, enter gpedit.msc, and press Enter. 2. Select the management template, click Network--Qos Packet Scheduler, and double-click Limit to reserve bandwidth. 3. Select Enabled, which will bring

Upload speed becomes very slow? I believe this is a problem that many friends will encounter when uploading things on their computers. If the network is unstable when using a computer to transfer files, the upload speed will be very slow. So how can I increase the network upload speed? Below, the editor will tell you how to solve the problem of slow computer upload speed. When it comes to network speed, we all know that the speed of opening web pages, download speed, and upload speed are also very critical. Especially some users often need to upload files to the network disk, so a fast upload speed will undoubtedly save you a lot of money. Less time, what should I do if the upload speed is slow? Below, the editor brings you pictures and texts on how to deal with slow computer upload speeds. How to solve the problem of slow computer upload speed? Click "Start--Run" or "Window key"

As long as the computer is equipped with a camera, it can take pictures, but some users still don't know how to take pictures and upload them. Now I will give you a detailed introduction to the method of taking pictures on the computer, so that users can upload the pictures wherever they want. How to take photos and upload them on a computer 1. Mac computer 1. Open Finder and click the application on the left. 2. After opening, click the Camera application. 3. Just click the photo button below. 2. Windows computer 1. Open the search box below and enter camera. 2. Then open the searched application. 3. Click the photo button next to it.

How to implement video playback and upload functions through the PHP Kuaishou API interface. Introduction: With the rise of social media, the public’s demand for video content has gradually increased. Kuaishou, as a short video-themed social application, is loved by many users. This article will introduce how to use PHP to write code to implement video playback and upload functions through the Kuaishou API interface. 1. Obtain the access token. Before using the Kuaishou API interface, you first need to obtain the access token. Token is the identity for accessing the API interface

Vue is a popular front-end framework that can be used to build highly interactive applications. During the development process, uploading avatars is one of the common requirements. Therefore, in this article, we will introduce how to implement the avatar upload function in Vue and provide specific code examples. Using a third-party library In order to implement the avatar upload function, we can use a third-party library, such as vue-upload-component. This library provides an upload component that can be easily integrated into Vue applications. Here is a simple example
