Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Want to store pdf files outside the Webroot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Want to store pdf files outside the Webroot

    I must be missing a detail that's making chase my tail.
    My web files are published under a folder named REAG which is under A5Webroot. Under REAG I have a subfolder 'SentFiles' where I store pdf files attached to emails; the file path is stored as SentFiles\Inv1234.pdf. I can open my pdf files with Open pdf file action JS no problem; so far so good.
    Now I would like to move the SentFiles folder outside the webroot and put it under C:\ and having a hard time. Naturally I changed the file path to
    C:\SentFiles\Inv1234.pdf but when I try to open the file, Alpha can't locate it, it keeps looking under under REAG folder. In project properties I did change the Allowed Folders to C:\SentFiles
    Any idea what I am missing?

    #2
    Re: Want to store pdf files outside the Webroot

    Originally posted by gaby_h View Post
    Any idea what I am missing?
    Are you using the download file feature pack, an HTML link or response.sendfile to download the file ?
    If it is an simple HTML link the file will need to be accessible via the webroot.

    Edit - I see you mentioned the Open PDF JS action. I have never used that but assume it will be similar to direct html link
    Last edited by mumfie; 08-10-2012, 03:55 AM. Reason: additional info
    https://appsbydesign.co.uk/

    Comment


      #3
      Re: Want to store pdf files outside the Webroot

      Hi Colin:
      No I am not using the file download in the feature pack. I am using the Action JS "Open an a5w page, HTML page ot PDF document" (in HTML container category). This works no problem when the folder that contains the pdf files is in the same folder as web components. But when I move the folder to another location outside the a5webroot, it returns the attached error.
      What's puzzling is: when I hard code the file path in the action JS like C:\SentFiles\Inv1234.pdf the action js works, the file is displayed. But when I use field place holder ( {Attachments} ) that contains with the exact same file path, it returns the error. Using the field place holder works no problem when the 'SentFiles' folder is in the same directory as web components.

      Comment


        #4
        Re: Want to store pdf files outside the Webroot

        If someone can help me solve the following issue I can find my way out:
        I have pdf files stored in C:\SentFiles. If I use action js 'Open a5w page, HTML, pdf document', what pathname should I use in order to open a particular file given that I have set C:\SentFiles as allowed folder in Project Properties? Using C:\SentFiles\Inv1234.pdf didn't work.

        Comment


          #5
          Re: Want to store pdf files outside the Webroot

          So after 88 views nobody can shed some light on how to open pdf files stored in a directory under C:\ using Open pdf action JS?

          Comment


            #6
            Re: Want to store pdf files outside the Webroot

            Gaby -

            I guess misery loves company

            Yep, I get the exact error you are getting when I try to open one that is saved outside the webroot. Uploads just fine, and as with you, works when you hard code the path. I tried everything that I could think of, but that was more for the upload part with the "Stored filename transformation expression" settings. Pretty much every combination yielded the same result: the error when trying to display it. I even played around with adding the path in front of the field placeholder; close, but no cigar :(

            Just out of curiosity, why do you want to have them outside the webroot? Is it a security issue?

            Cheers!
            Lyle
            Cheers!
            Lyle Chamney
            http://www.2ninerniner2.com/
            Websites rebuilt with WordPress
            http://goodcheapfastwebsites.com/
            Complete, ready to install WordPress websites
            http://snifflevalve.com
            WordPress training and tutorials

            Comment


              #7
              Re: Want to store pdf files outside the Webroot

              Hi Lyle:
              Thanks for confirming. The next question is: Can it be considered a bug or not?

              Reason I want to store it outside the webroot: to make it safer for me to update my app on the server. When the folder is under the web root I have to move it outside and store it away in another folder, delete all my web files, load the new ones and put the folder back under the webroot. When the folder is outside the webroot under C: I don't have to worry about this detail.

              Comment


                #8
                Re: Want to store pdf files outside the Webroot

                Originally posted by gaby_h View Post
                Hi Lyle:
                Thanks for confirming. The next question is: Can it be considered a bug or not?

                Reason I want to store it outside the webroot: to make it safer for me to update my app on the server. When the folder is under the web root I have to move it outside and store it away in another folder, delete all my web files, load the new ones and put the folder back under the webroot. When the folder is outside the webroot under C: I don't have to worry about this detail.
                Hi Sam, I just sent a detail email to you on how i did it,
                please review, i do not have the chance to paste it here in detail
                take care & pretty sure is not a bug, just the way we use the path seems different

                ken tjia

                Comment


                  #9
                  Re: Want to store pdf files outside the Webroot

                  Please share the answer if you get the chance.
                  Gregg
                  https://paiza.io is a great site to test and share sql code

                  Comment


                    #10
                    Re: Want to store pdf files outside the Webroot

                    Just wondering: Why do you delete all your web files when you update your app? Is that a way to keep the app from accumulating any deleted grids?

                    Comment


                      #11
                      Re: Want to store pdf files outside the Webroot

                      As a person with interest in this thread, I backup my application and data files
                      seperate from my pdf, xls, and doc files.

                      The process I have now works, but only if the user has access to the same shared
                      drive the application has access to.
                      Gregg
                      https://paiza.io is a great site to test and share sql code

                      Comment


                        #12
                        Re: Want to store pdf files outside the Webroot

                        Originally posted by lgrupido View Post
                        Just wondering: Why do you delete all your web files when you update your app? Is that a way to keep the app from accumulating any deleted grids?
                        FTPing files takes longer. I connect to remote server (RDP), delete old files on the server, copy folder from local to remote (do not use 3rd party software Filezilla, cuteftp, etc...) .

                        Comment

                        Working...
                        X