• Resolved xeechemist

    (@xeechemist)


    Hello!
    First of all I want to thank you for this amazing plugin.
    I have an issue when ever I want to import a CSV file it always give me an error “Uploaded file is not CSV” (There are only 50 rows of data in the file). I have checked the file and it is CSV. I even tried to upload the demo your demo file but still that error persists. Please help how to resolve this issue. Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi xeechemist,
    this would have to be an issue with either your site or host. That message basically means “We could not verify that this file is real”, which could be caused by one of two things.

    a) the file is not a CSV. Perhaps an xls file or a png file or whatever.
    b) the file could no longer be accessed

    Since we are pretty sure that the issue is not a), it HAS to be b).

    So what could be the cause?

    Perhaps you are running some security plugin on your site that is blocking uploads. If so, try temporarily disabling the plugin to see if that now allows the CSV to upload.

    If that is not the case, then the issue could be your host. This is something I cannot help you fix – only provide possible causes.

    The issue could be with something called the tmp folder, which is a folder on your host where files get uploaded to in order to be parsed and validated in a secure location before being moved to the “real” upload location. For cheaper shared hosts, this folder can fill up really quickly and cause problems.

    Another issue could be the permissions. If your folder permissions are not correct, then the issue could be that your site (and thus HD QUiz) is unable to move and access the upload from the aforementioned tmp folder. Try logging into your host and take a look at ./wp-content/uploads/hd-quiz/ and see if there are any files in there.

    And lastly, this could just be a host configuration issue. One thing to try is to rename your csv file to something random but simple. Something like asdajhsdasd.csv — anything with no spaces or special characters or anything, and anything that is unique – a filename you have not used before.

    Good luck and please keep me in the loop with anything you find or need further assistance.

    Thread Starter xeechemist

    (@xeechemist)

    I have contacted my host provider and they told me to upload the file via file manager or FTP client. I have uploaded the file to ./wp-content/uploads/hd-quiz/ please tell me how can I access this file in the plugin now. Thanks

    Thread Starter xeechemist

    (@xeechemist)

    It would be better if you could include upload from url option in the import quiz tool

    Thread Starter xeechemist

    (@xeechemist)

    Hi!
    Issue resolved.
    You were right, I contacted my host provider and inform them that there is something wrong with tmp folder and yes there was a problem in that folder. They have now fixed the issue. Thanks a lot.

    Plugin Author Harmonic Design

    (@harmonic_design)

    No problem; enjoy HD Quiz!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Uploaded file is not CSV’ is closed to new replies.