The DedeCMS Upload image set pop-up box displays 302 and FILEID: X solution

Source: Internet
Author: User
Tags php file php and

Solution displayed in the dialog box

Include/uploadsafe. inc. change the imtypes of Line 1 in php to imgtypes and add a g and then update the system cache. However, the 45th speed browser test fails. I don't know why, but it can be solved in the past.


 try the following solution:

Userlogin. class. Php file, open it in the code editor, and add the following code before session_start () in the second line:

The code is as follows: Copy code

If (isset ($ _ POST ["PHPSESSID"]) {


Session_id ($ _ POST ["PHPSESSID"]);


} Else if (isset ($ _ GET ["PHPSESSID"]) {


Session_id ($ _ GET ["PHPSESSID"]);


 }


Save the file and overwrite it.

The uploaded image dialog box shows FILEID: X. Solution:

Site background, noticed for the UTF-8 version, so a detailed test, view the management directory under the swfupload. php made a few breakpoints
Test. The cause of the problem is found in the generated thumbnail.
Check out your include/common. inc. php file format UTF-8 encoded friend, note the format adjusted to UTF-8 none
BOM format, GBK encoding friends, note that the format is adjusted to ANSI (using NotePad ++, there is a format menu in the menu bar, open is
The file format can be adjusted. You can also select DW and Editeplus .)
Also need to pay attention to a point, if the language encoding used for UTF-8 encoding friends, be sure to pay attention, do not use notepad to open repair
Save any system files.

As shown in the figure, when some friends encounter similar situations, uploading images is a highlighted error message, but the uploaded image files can be seen in the attachment management.

Now we provide a thumbnail repair file (a tool for BOM file detection), which is saved as a. php and stored in the root directory of the website.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.