Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Thanked 0 Times in 0 Posts

    Question Help me-Problem in Tiff file uploadinng

    I made a php script for uploading files. My script is working well for gif,jpg,png images but when i upload the tiff extension file and click on submit button, file does not upload and also no error display.................

    please help what i do.......

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 666 Times in 655 Posts
    No reason why a tiff should upload any differently from any other file type. The only difference from gif, jpg, and png is that as far as the web is concerned a tif file is not an image format as the web only recognises 3 formats for images.
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Denver, Colorado USA
    Thanked 340 Times in 332 Posts
    You would need to post your code (the form and the php form processing code) to get any specific help with it. Also tell us the file size of the file you are trying to upload.

    TIFF files are typically very large. You are either running up against a file size constraint (either with the PHP settings or specific checking your code is doing), a file type check in your code that does not allow tiff, or a problem with a file type check in your code (the "type" data that the browser provides is different then what your code expects.)

    If the file size is greater than the POST_MAX_SIZE setting, the $_FILES array will be empty ( isset($_FILES) will be false). The error checking, error reporting, and error recovery in your code should be testing for this. Also, the $_FILES['...']['error'] element indicates if an upload was successful or if it failed due to one of about 7 or 8 error conditions that your error checking, error reporting, and error recovery code should be testing before attempting to process the uploaded file.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts